Skip to content

Commit

Permalink
Fix pid path and user for docker file actions
Browse files Browse the repository at this point in the history
Change-Id: I5f4e45ab694e7aa8fdefaf66911b49e74deb1403
  • Loading branch information
bpedersen2 committed Dec 27, 2024
1 parent 2f3ff43 commit c603219
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ COPY . /frontend/
RUN npx ng build

FROM nginxinc/nginx-unprivileged
USER root
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /frontend/dist/ /usr/share/nginx/html/
COPY scripts/nginx.conf /etc/nginx/nginx.conf
USER 101
COPY --from=builder /frontend/dist/ /usr/share/nginx/html/
EXPOSE 8080
2 changes: 1 addition & 1 deletion scripts/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
pid /tmp/nginx.pid;

# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;
Expand Down

0 comments on commit c603219

Please sign in to comment.