|
|
|
@ -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 |
|
|
|
|