This repository has been archived on 2024-09-11. You can view files and clone it, but cannot push or open issues or pull requests.
php-fpm-s6/Dockerfile_ubuntu_mysql

31 lines
781 B
Plaintext

ARG PHP_VERSION=8.3
FROM aprimediet/php:${PHP_VERSION}-ubuntu
LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com"
ARG PHP_VERSION=8.3
WORKDIR /root
# UPDATE DEPENDENCIES FIRST
RUN --mount=type=cache,target=/var/cache/apt/archives \
apt -y update && apt -y upgrade
# INSTALL MYSQL DEPENDENCIES
RUN --mount=type=cache,target=/var/cache/apt/archives \
apt -y install \
php${PHP_VERSION}-pdo; exit 0
RUN --mount=type=cache,target=/var/cache/apt/archives \
apt -y install \
php${PHP_VERSION}-mysql; exit 0
RUN --mount=type=cache,target=/var/cache/apt/archives \
apt -y install \
php${PHP_VERSION}-mysqlnd; exit 0
RUN --mount=type=cache,target=/var/cache/apt/archives \
apt -y install \
php${PHP_VERSION}-mysqli; exit 0
EXPOSE 9000