Updated NGINX permissions
This commit is contained in:
parent
9dc1864073
commit
af32f0db7d
1 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,9 @@ RUN npm run build:react
|
|||
# Set working directory to nginx asset directory
|
||||
# Remove default nginx static assets
|
||||
WORKDIR /usr/share/nginx/html
|
||||
RUN rm -rf ./*
|
||||
RUN rm -Rf ./*
|
||||
# Move build nginx and update permissions
|
||||
RUN mv /build/dist/* .
|
||||
RUN chown -R nginx:nginx /usr/share/nginx/html
|
||||
# Containers run nginx with global directives and daemon off
|
||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue