diff --git a/Dockerfile b/Dockerfile index c4f2420..23f1769 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,16 @@ FROM registry.sindominio.net/debian -ARG PHP_VERSION=7.4 +ARG PHP_VERSION=none RUN apt-get update RUN apt-get -qy install php-fpm +RUN export PHP_VERSION=`dpkg -s php-fpm | grep Version | cut -f2 -d" " | cut -d":" -f2 | cut -d"+" -f1` + COPY php-fpm.conf /etc/php/$PHP_VERSION/fpm/php-fpm.conf +RUN echo $PHP_VERSION + RUN echo "include=/etc/php/$PHP_VERSION/fpm/pool.d/*.conf" >> /etc/php/$PHP_VERSION/fpm/php-fpm.conf COPY www.conf /etc/php/$PHP_VERSION/fpm/pool.d/www.conf