Skip to content

Commit

Permalink
fix(nginx4spa): use upstream nginx image (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored May 9, 2023
1 parent 11ac101 commit 4949939
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions nginx4spa/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
FROM ghcr.io/socialgouv/docker/nginx:7.5@sha256:9ed92683c2d35db2c48068ef5a27559081184d04912cc3d1610fd00832f28cb5
FROM nginxinc/nginx-unprivileged:1.23-alpine@sha256:ae94ea43b80f95594498099feac9e70c8ad83916ccf923ed3de8e24cdda98ee1

COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./entrypoint.sh /entrypoint.sh

## adjust permissions
USER root
RUN chown -R nginx:nginx /usr/share/nginx/html && chmod -R 755 /usr/share/nginx/html && \
chown -R nginx:nginx /var/cache/nginx && \
chown -R nginx:nginx /var/log/nginx && \
chown -R nginx:nginx /etc/nginx

COPY ./nginx.conf /etc/nginx/nginx.conf
RUN touch /var/run/nginx.pid && \
chown -R nginx:nginx /var/run/nginx.pid

USER 101

ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 4949939

Please sign in to comment.