diff --git a/Dockerfile.nginx.prod b/Dockerfile.nginx.prod index ac4d20b..c1ce39b 100644 --- a/Dockerfile.nginx.prod +++ b/Dockerfile.nginx.prod @@ -16,21 +16,6 @@ RUN yarn build # 2nd stage FROM nginx:1.23.3-alpine-slim -USER root - -RUN rm /etc/nginx/conf.d/default.conf && \ - rm /etc/nginx/nginx.conf && \ - chown -R nginx:nginx /var/cache/nginx && \ - chown -R nginx:nginx /var/run && \ - touch /var/run/nginx.pid && \ - chown -R nginx:nginx /var/run/nginx.pid - -COPY --from=build /app/dist /usr/share/nginx/html -COPY .nginx/nginx.conf /etc/nginx/nginx.conf -COPY .nginx/conf.d /etc/nginx/conf.d - -USER nginx - EXPOSE 8080 CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file