Skip to content

Commit

Permalink
permission compensation fixes for nginx unprivileged
Browse files Browse the repository at this point in the history
  • Loading branch information
bensoer committed May 14, 2024
1 parent 6ddfc84 commit 3a93409
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ RUN npm install && npm run build
# Deploy Stage
FROM nginxinc/nginx-unprivileged:stable-alpine-slim
WORKDIR /usr/share/nginx/html
USER root
RUN rm -rf ./*
USER nginx
COPY --from=builder /app/build .

ENTRYPOINT [ "nginx", "-g", "daemon off;" ]

0 comments on commit 3a93409

Please sign in to comment.