php-app/nginx/Dockerfile

26 lines
551 B
Docker
Raw Permalink Normal View History

2020-09-04 23:31:05 +02:00
FROM alpine:3.12
LABEL maintainer = "bisco - <bisco@younerd.org>"
RUN addgroup -g 82 www-data &&\
adduser -u 82 -G www-data -g 'World Wide Web user' \
-s /sbin/nologin -D www-data
RUN apk add --update --no-cache \
bash \
nginx nginx-mod-http-image-filter \
nginx-mod-http-headers-more \
nginx-mod-http-xslt-filter
COPY nginx.conf ssl_params gzip_params /etc/nginx/
COPY nginx.vh.default.conf /etc/nginx/conf.d/default.conf
VOLUME ["/etc/nginx/"]
EXPOSE 80 443
STOPSIGNAL SIGTERM
CMD ["nginx", "-g", "daemon off;"]