Fix: dockerfile - revert replacement of nginx image with non-privileged one

Fixes https://github.com/CorentinTh/it-tools/issues/714
This commit is contained in:
Andrii Bratanin 2023-11-02 01:49:14 +02:00 committed by GitHub
parent e87f4b1837
commit d67c3a5cfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,8 +10,8 @@ COPY . .
RUN pnpm build
# production stage
FROM nginxinc/nginx-unprivileged:stable-alpine AS production-stage
FROM nginx:stable-alpine AS production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]