Updated NGINX permissions

This commit is contained in:
dunemask 2023-08-02 15:18:41 -06:00
parent 9dc1864073
commit af32f0db7d

View file

@ -17,7 +17,9 @@ RUN npm run build:react
# Set working directory to nginx asset directory # Set working directory to nginx asset directory
# Remove default nginx static assets # Remove default nginx static assets
WORKDIR /usr/share/nginx/html WORKDIR /usr/share/nginx/html
RUN rm -rf ./* RUN rm -Rf ./*
# Move build nginx and update permissions
RUN mv /build/dist/* . RUN mv /build/dist/* .
RUN chown -R nginx:nginx /usr/share/nginx/html
# Containers run nginx with global directives and daemon off # Containers run nginx with global directives and daemon off
ENTRYPOINT ["nginx", "-g", "daemon off;"] ENTRYPOINT ["nginx", "-g", "daemon off;"]