main #36
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
# Use a non-root user for security
|
# Use a non-root user for security
|
||||||
|
RUN chown -R 101:101 /usr/share/nginx/html /var/cache/nginx /var/run /etc/nginx
|
||||||
USER 101
|
USER 101
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
Loading…
Add table
Reference in a new issue