You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

22 lines
570 B

FROM registry.sindominio.net/debian
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
RUN ln -s /usr/sbin/php-fpm$PHP_VERSION /usr/sbin/php-fpm
EXPOSE 9000
CMD ["/usr/sbin/php-fpm","--nodaemonize"]