We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbb509c commit 2eb6d95Copy full SHA for 2eb6d95
1 file changed
Dockerfile
@@ -9,6 +9,10 @@ RUN npm run build
9
10
FROM nginx:alpine
11
12
+RUN chown -R nginx:nginx /var/cache/nginx && \
13
+ chown -R nginx:nginx /var/run && \
14
+ chown -R nginx:nginx /var/log/nginx && \
15
+ chown -R nginx:nginx /run
16
# Copy the built application from the 'build' stage
17
COPY --from=build /app/dist /usr/share/nginx/html
18
@@ -18,7 +22,6 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf
22
# Expose the non-privileged port
19
23
EXPOSE 8080
20
24
21
-# Switch to the non-root user
25
USER nginx
26
27
# Start nginx
0 commit comments