Updated dockerfile and added mysql support for ubuntu based image
This commit is contained in:
parent
c8d3258d92
commit
a2e7e47dbf
|
@ -25,7 +25,7 @@ RUN --mount=type=cache,target=/var/cache/apt/archives \
|
||||||
php${PHP_VERSION}-cgi php${PHP_VERSION}-curl \
|
php${PHP_VERSION}-cgi php${PHP_VERSION}-curl \
|
||||||
php${PHP_VERSION}-dba php${PHP_VERSION}-dev php${PHP_VERSION}-gd \
|
php${PHP_VERSION}-dba php${PHP_VERSION}-dev php${PHP_VERSION}-gd \
|
||||||
php${PHP_VERSION}-http php${PHP_VERSION}-imagick php${PHP_VERSION}-intl \
|
php${PHP_VERSION}-http php${PHP_VERSION}-imagick php${PHP_VERSION}-intl \
|
||||||
php${PHP_VERSION}-json php${PHP_VERSION}-mbstring php${PHP_VERSION}-memcache \
|
php${PHP_VERSION}-mbstring php${PHP_VERSION}-memcache \
|
||||||
php${PHP_VERSION}-memcached php${PHP_VERSION}-pspell \
|
php${PHP_VERSION}-memcached php${PHP_VERSION}-pspell \
|
||||||
php${PHP_VERSION}-readline php${PHP_VERSION}-xml \
|
php${PHP_VERSION}-readline php${PHP_VERSION}-xml \
|
||||||
php${PHP_VERSION}-xmlrpc php${PHP_VERSION}-zip
|
php${PHP_VERSION}-xmlrpc php${PHP_VERSION}-zip
|
||||||
|
@ -36,6 +36,11 @@ RUN --mount=type=cache,target=/var/cache/apt/archives \
|
||||||
php${PHP_VERSION}-autoload php${PHP_VERSION}-date php${PHP_VERSION}-monolog \
|
php${PHP_VERSION}-autoload php${PHP_VERSION}-date php${PHP_VERSION}-monolog \
|
||||||
php${PHP_VERSION}-psr; exit 0
|
php${PHP_VERSION}-psr; exit 0
|
||||||
|
|
||||||
|
# FAILING ON PHP-8.0
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apt/archives \
|
||||||
|
apt -y install \
|
||||||
|
php${PHP_VERSION}-json; exit 0
|
||||||
|
|
||||||
# REMOVE CURRENT POOL FIRST
|
# REMOVE CURRENT POOL FIRST
|
||||||
RUN rm -rf /etc/php/${PHP_VERSION}/fpm/pool.d
|
RUN rm -rf /etc/php/${PHP_VERSION}/fpm/pool.d
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
ARG PHP_VERSION=8.1
|
ARG PHP_VERSION=8.3
|
||||||
|
|
||||||
FROM aprimediet/php:${UBUNTU_VERSION}
|
FROM aprimediet/php:${PHP_VERSION}-ubuntu
|
||||||
LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com"
|
LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com"
|
||||||
|
|
||||||
ARG PHP_VERSION=8.1
|
ARG PHP_VERSION=8.3
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
||||||
|
@ -11,7 +11,21 @@ WORKDIR /root
|
||||||
RUN --mount=type=cache,target=/var/cache/apt/archives \
|
RUN --mount=type=cache,target=/var/cache/apt/archives \
|
||||||
apt -y update && apt -y upgrade
|
apt -y update && apt -y upgrade
|
||||||
|
|
||||||
# INSTALL BASE DEPENDENCIES
|
# INSTALL MYSQL DEPENDENCIES
|
||||||
RUN --mount=type=cache,target=/var/cache/apt/archives \
|
RUN --mount=type=cache,target=/var/cache/apt/archives \
|
||||||
apt -y install \
|
apt -y install \
|
||||||
php${PHP_VERSION}-
|
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
|
Reference in New Issue