Nameless-Docker-Rootless/nginx_web/Dockerfile
2022-03-15 23:18:15 +01:00

16 lines
384 B
Docker

FROM nginxinc/nginx-unprivileged
ENV PHP_FPM="php:9000" \
NGINX_PORT="8080"
RUN find /etc/nginx -type f -not -name 'mime.types' -not -name 'fastcgi_params' -delete && \
rm -rf conf.d modules
COPY nginx.conf /etc/nginx
COPY entrypoint.sh /
# The www-data user has uid 33 on Debian/Ubuntu which is what most people are used to
USER 33
ENTRYPOINT [ "sh", "/entrypoint.sh" ]