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.

30 lines
801B

  1. from alpine:3
  2. RUN apk add --no-cache nginx php7-fpm wget
  3. RUN adduser -D -g 'www' www
  4. RUN mkdir /www
  5. RUN mkdir /run/nginx/
  6. RUN chown -R www:www /www
  7. RUN chown -R www:www /run/nginx
  8. RUN chown -R www:www /var/lib/nginx
  9. ENV PHP_FPM_USER="www"
  10. ENV PHP_FPM_GROUP="www"
  11. ENV PHP_FPM_LISTEN_MODE="0660"
  12. ENV PHP_MEMORY_LIMIT="512M"
  13. ENV PHP_MAX_UPLOAD="50M"
  14. ENV PHP_MAX_FILE_UPLOAD="200"
  15. ENV PHP_MAX_POST="100M"
  16. ENV PHP_DISPLAY_ERRORS="On"
  17. ENV PHP_DISPLAY_STARTUP_ERRORS="On"
  18. ENV PHP_ERROR_REPORTING="E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR"
  19. ENV PHP_CGI_FIX_PATHINFO=0
  20. ENV TIMEZONE="Europe/Copenhagen"
  21. COPY default.conf /etc/nginx/conf.d/default.conf
  22. COPY ./ /www/
  23. RUN /bin/sh -c "cd /www/; /bin/sh ./pacman.sh"
  24. RUN rm /www/default.conf /www/Dockerfile
  25. ENTRYPOINT ["sh", "/www/start.sh"]