🚑️(frontend) fixe CVEs in frontend image
Use alpine version for production image instead of debian in order to have less CVEs.
This commit is contained in:
committed by
Anthony LC
parent
aeeed8feb5
commit
8c9cb43097
@@ -73,7 +73,7 @@ ENV NEXT_PUBLIC_API_ORIGIN=${API_ORIGIN}
|
|||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
# ---- Front-end image ----
|
# ---- Front-end image ----
|
||||||
FROM nginxinc/nginx-unprivileged:1.25 as frontend-production
|
FROM nginxinc/nginx-unprivileged:1.26-alpine as frontend-production
|
||||||
|
|
||||||
# Un-privileged user running the application
|
# Un-privileged user running the application
|
||||||
ARG DOCKER_USER
|
ARG DOCKER_USER
|
||||||
|
|||||||
Reference in New Issue
Block a user