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.
 
 
 
 

29 lines
762 B

from alpine:3.10.1
RUN apk add --no-cache nginx php7-fpm
RUN adduser -D -g 'www' www
RUN mkdir /www
RUN mkdir /run/nginx/
RUN chown -R www:www /www
RUN chown -R www:www /run/nginx
RUN chown -R www:www /var/lib/nginx
ENV PHP_FPM_USER="www"
ENV PHP_FPM_GROUP="www"
ENV PHP_FPM_LISTEN_MODE="0660"
ENV PHP_MEMORY_LIMIT="512M"
ENV PHP_MAX_UPLOAD="50M"
ENV PHP_MAX_FILE_UPLOAD="200"
ENV PHP_MAX_POST="100M"
ENV PHP_DISPLAY_ERRORS="On"
ENV PHP_DISPLAY_STARTUP_ERRORS="On"
ENV PHP_ERROR_REPORTING="E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR"
ENV PHP_CGI_FIX_PATHINFO=0
ENV TIMEZONE="Europe/Copenhagen"
COPY ./ /www/
RUN rm /www/default.conf /www/Dockerfile
COPY default.conf /etc/nginx/conf.d/default.conf
CMD php-fpm7 -D && nginx -g 'daemon off;'