Sign inSign up

phpdockerio/php7-fpm

By phpdockerio

Updated over 5 years ago

PHP 7 FPM base container for PHPDocker.io.

Image
20

1M+

Dockerfile
####################################
# PHPDocker.io PHP 7.0 / FPM image #
####################################

FROM phpdockerio/php7-cli

# Install FPM
RUN apt-get update \
    && apt-get -y --no-install-recommends install php-fpm \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

# File permissions workaround
RUN usermod -u 1000 www-data

# PHP-FPM packages need a nudge to make them docker-friendly
COPY overrides.conf /etc/php/7.0/fpm/pool.d/z-overrides.conf

# PHP-FPM has really dirty logs, certainly not good for dockerising
# The following startup script contains some magic to clean these up
COPY php-fpm-startup /usr/bin/php-fpm
CMD /usr/bin/php-fpm

# Open up fcgi port
EXPOSE 9000