Use nginx-unprivileged image; fix exposed port (#436)

This commit is contained in:
Dan 2024-12-07 07:18:56 -05:00 committed by GitHub
parent e67801c67c
commit fe77036aca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,9 +14,9 @@ COPY . .
RUN corepack enable pnpm && pnpm run build
# Stage 3: Production image
FROM nginx:stable AS production
FROM nginxinc/nginx-unprivileged:stable AS production
WORKDIR /app
COPY --from=builder /app/out /app
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
EXPOSE 8080