Skip to content

Commit c603219

Browse files
committed
Fix pid path and user for docker file actions
Change-Id: I5f4e45ab694e7aa8fdefaf66911b49e74deb1403
1 parent 2f3ff43 commit c603219

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ COPY . /frontend/
99
RUN npx ng build
1010

1111
FROM nginxinc/nginx-unprivileged
12+
USER root
1213
RUN rm -rf /usr/share/nginx/html/*
13-
COPY --from=builder /frontend/dist/ /usr/share/nginx/html/
1414
COPY scripts/nginx.conf /etc/nginx/nginx.conf
15+
USER 101
16+
COPY --from=builder /frontend/dist/ /usr/share/nginx/html/
1517
EXPOSE 8080

scripts/nginx.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
user nginx;
66
worker_processes auto;
77
error_log /var/log/nginx/error.log;
8-
pid /run/nginx.pid;
8+
pid /tmp/nginx.pid;
99

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

0 commit comments

Comments
 (0)