Use unprivileged alpine container

This commit is contained in:
2022-02-14 10:05:52 +00:00
parent d0338f1895
commit c6397047b7
2 changed files with 5 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ COPY *.js ./
RUN npm run build
FROM bitnami/nginx:1.20 AS production
FROM nginxinc/nginx-unprivileged:1.20-alpine AS production
COPY --from=build-stage /app/build /app
COPY --from=build-stage /app/build /usr/share/nginx/html
EXPOSE 8080