Browse Source

Check PHP_VERSION

master
Siroco 6 months ago
parent
commit
d850aaa0f5
Signed by: siroco
GPG Key ID: 1324098302A514B0
  1. 6
      Dockerfile

6
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

Loading…
Cancel
Save