We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 640208a commit ef64fa1Copy full SHA for ef64fa1
1 file changed
Dockerfile
@@ -9,8 +9,17 @@ RUN npm run build
9
10
FROM nginx:alpine
11
12
+# Copy the built application from the 'build' stage
13
COPY --from=build /app/dist /usr/share/nginx/html
14
-EXPOSE 443
15
+# Copy the custom nginx configuration
16
+COPY nginx.conf /etc/nginx/conf.d/default.conf
17
18
+# Expose the non-privileged port
19
+EXPOSE 8080
20
+
21
+# Switch to the non-root user
22
+USER nginx
23
24
+# Start nginx
25
CMD ["nginx", "-g", "daemon off;"]
0 commit comments