FROM nginxinc/nginx-unprivileged:stable-alpine # Install nginx and give permissions to 'pn' # See https://www.rockyourcode.com/run-docker-nginx-as-non-root-user/ ENV HOME=/usr/share/nginx/html WORKDIR $HOME COPY nginx.conf /etc/nginx/conf.d/ COPY templates $HOME/templates RUN cd /usr/share/nginx/html && ls