Skip to content

Commit

Permalink
remove permission changing
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc23007 committed Oct 17, 2024
1 parent 65b6630 commit edd70ea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ RUN npm run build

# Step 2: Serve the app using NGINX
FROM nginxinc/nginx-unprivileged:mainline
RUN chmod -R g+rwx /var/cache/nginx /var/run /var/log/nginx
RUN chown -R nginx:0 /usr/share/nginx/html && \
chmod -R g+rwX /usr/share/nginx/html
COPY --from=build /usr/src/app /usr/share/nginx/html
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit edd70ea

Please sign in to comment.