FROM alpine:3.18 LABEL maintainer="Bugz Software " STOPSIGNAL SIGTERM RUN apk --no-cache add nginx nginx-mod-http-headers-more \ nginx-mod-http-image-filter nginx-mod-http-geoip \ nginx-mod-stream nginx-mod-stream-geoip nginx-mod-http-xslt-filter \ && mkdir -p /run/nginx \ && ln -sf /dev/stdout /var/log/nginx/access.log \ && ln -sf /dev/stderr /var/log/nginx/error.log \ && addgroup -g 1000 www \ && adduser -D -G www -u 1000 www \ && sed -i 's#user nginx#user www#g' /etc/nginx/nginx.conf CMD ["nginx", "-g", "daemon off;"]