Skip to content

Commit 497071a

Browse files
authored
Merge pull request #3636 from tarlepp/cve-fix
Chore(deps): Fix pcre2 CVE issue
2 parents 91b6068 + 54012bf commit 497071a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ RUN yarn build-prod
107107
# Stage 4: Production
108108
FROM nginx:mainline-alpine-slim AS production
109109

110+
RUN apk update \
111+
&& apk add --no-cache pcre2=10.46-r0 \
112+
&& rm -rf /var/cache/apk/*
113+
110114
# Copy nginx configuration and build application inside the final container
111115
COPY --from=builder /app/docker/nginx.conf /etc/nginx/conf.d/default.conf
112116
COPY --from=builder /app/dist/angular-frontend /usr/share/nginx/html

0 commit comments

Comments
 (0)