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.
|
|
|
FROM registry.sindominio.net/debian
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
RUN apt-get -qy install php-fpm
|
|
|
|
|
|
|
|
RUN dpkg -s php-fpm | grep Version | cut -f2 -d" " | cut -d":" -f2 | cut -d"+" -f1 > /tmp/php-fpm.version
|
|
|
|
|
|
|
|
COPY *.conf /tmp/
|
|
|
|
|
|
|
|
RUN PHP_VERSION=$(cat /tmp/php-fpm.version) && \
|
|
|
|
cp /tmp/php-fpm.conf /etc/php/$PHP_VERSION/fpm/php-fpm.conf && \
|
|
|
|
echo "include=/etc/php/$PHP_VERSION/fpm/pool.d/*.conf" >> /etc/php/$PHP_VERSION/fpm/php-fpm.conf && \
|
|
|
|
cp /tmp/www.conf /etc/php/$(cat /tmp/php-fpm.version)/fpm/pool.d/www.conf && \
|
|
|
|
ln -s /usr/sbin/php-fpm$PHP_VERSION /usr/sbin/php-fpm && \
|
|
|
|
rm -rf /tmp/*.conf
|
|
|
|
|
|
|
|
EXPOSE 9000
|
|
|
|
|
|
|
|
CMD ["/usr/sbin/php-fpm","--nodaemonize"]
|