diff --git a/Dockerfile b/Dockerfile index b55338e..63f15f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,9 @@ RUN npm install && npm run build # Deploy Stage FROM nginxinc/nginx-unprivileged:stable-alpine-slim WORKDIR /usr/share/nginx/html +USER root RUN rm -rf ./* +USER nginx COPY --from=builder /app/build . ENTRYPOINT [ "nginx", "-g", "daemon off;" ] \ No newline at end of file