Dockerfile 548 B

1234567891011121314
  1. FROM alpine:3.18
  2. LABEL maintainer="Bugz Software <[email protected]>"
  3. STOPSIGNAL SIGTERM
  4. RUN apk --no-cache add nginx nginx-mod-http-headers-more \
  5. nginx-mod-http-image-filter nginx-mod-http-geoip \
  6. nginx-mod-stream nginx-mod-stream-geoip nginx-mod-http-xslt-filter \
  7. && mkdir -p /run/nginx \
  8. && ln -sf /dev/stdout /var/log/nginx/access.log \
  9. && ln -sf /dev/stderr /var/log/nginx/error.log \
  10. && addgroup -g 1000 www \
  11. && adduser -D -G www -u 1000 www \
  12. && sed -i 's#user nginx#user www#g' /etc/nginx/nginx.conf
  13. CMD ["nginx", "-g", "daemon off;"]