Skip to content

Commit ef64fa1

Browse files
committed
added nginx.conf file
1 parent 640208a commit ef64fa1

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,17 @@ RUN npm run build
99

1010
FROM nginx:alpine
1111

12+
# Copy the built application from the 'build' stage
1213
COPY --from=build /app/dist /usr/share/nginx/html
1314

14-
EXPOSE 443
15+
# Copy the custom nginx configuration
16+
COPY nginx.conf /etc/nginx/conf.d/default.conf
1517

18+
# Expose the non-privileged port
19+
EXPOSE 8080
20+
21+
# Switch to the non-root user
22+
USER nginx
23+
24+
# Start nginx
1625
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)