flavors/php-fpm/Dockerfile

8 lines
325 B
Text
Raw Normal View History

FROM d.xr.to/php
2018-11-11 22:14:01 +00:00
RUN xbps-install -Sy php-fpm
RUN useradd -rU www -u 444
RUN mkdir /var/log
RUN sed -i 's:\(user\|group\)\s*=\s*http:\1 = www:;s:127\.0\.0\.1\:9000:9000:;s:\;error_log\s*=.+:error_log = /dev/stderr:;' /etc/php/php-fpm.conf /etc/php/php-fpm.d/www.conf
2018-11-11 22:14:01 +00:00
EXPOSE 9000/tcp
CMD ["/usr/bin/php-fpm", "--nodaemonize"]