diff --git a/Dockerfile b/Dockerfile index f765453..3b6a377 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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;"]