We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f3ff43 commit c603219Copy full SHA for c603219
Dockerfile
@@ -9,7 +9,9 @@ COPY . /frontend/
9
RUN npx ng build
10
11
FROM nginxinc/nginx-unprivileged
12
+USER root
13
RUN rm -rf /usr/share/nginx/html/*
-COPY --from=builder /frontend/dist/ /usr/share/nginx/html/
14
COPY scripts/nginx.conf /etc/nginx/nginx.conf
15
+USER 101
16
+COPY --from=builder /frontend/dist/ /usr/share/nginx/html/
17
EXPOSE 8080
scripts/nginx.conf
@@ -5,7 +5,7 @@
5
user nginx;
6
worker_processes auto;
7
error_log /var/log/nginx/error.log;
8
-pid /run/nginx.pid;
+pid /tmp/nginx.pid;
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;
0 commit comments