a simple nginx docker image with php7
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.

Dockerfile 820B

123456789101112131415161718192021222324252627
  1. FROM alpine:latest
  2. MAINTAINER aligator <aligator@suncraft-server.de>
  3. ARG user
  4. ARG gid
  5. ARG uid
  6. ENV SSH_USER=${user}
  7. ENV GROUP_GID=${gid}
  8. ENV USER_UID=${uid}
  9. RUN apk add --no-cache --update-cache nginx php7 php7-fpm php7-curl php7-ctype php7-dom php7-gd php7-json php7-mbstring php7-openssl php7-session php7-simplexml php7-zip php7-xml php7-apcu php7-opcache && \
  10. addgroup -g $GROUP_GID http && \
  11. adduser -D -u $USER_UID -s /sbin/nologin -G http http && \
  12. mkdir -p /tmp/nginx/client-body
  13. # configure nginx
  14. COPY nginx/nginx.conf /etc/nginx/nginx.conf
  15. COPY nginx/default.conf /etc/nginx/conf.d/default.conf
  16. # configure php-fpm
  17. COPY php/fpm-pool.conf /etc/php7/php-fpm.d/zzz_custom.conf
  18. COPY php/php.ini /etc/php7/conf.d/zzz_custom.ini
  19. COPY start_services.sh /start_services.sh
  20. CMD ["/start_services.sh"]