fix: patch base image (brotli CVE found by Trivy)
build-scan-deploy / build (push) Successful in 1m20s

This commit is contained in:
joseph committed 2026-11-18 00:42:20 +03:00
1 parent e4f9773a58
commit cf4cc1dbd4
1 file changed
+2
+2
View File
@@ -1,4 +1,6 @@
FROM nginx:1.29-alpine FROM nginx:1.29-alpine
# patch OS packages so Trivy finds no fixable CRITICAL CVEs
RUN apk upgrade --no-cache
ARG VERSION=dev ARG VERSION=dev
COPY index.html /usr/share/nginx/html/index.html COPY index.html /usr/share/nginx/html/index.html
RUN sed -i "s/__VERSION__/${VERSION}/" /usr/share/nginx/html/index.html RUN sed -i "s/__VERSION__/${VERSION}/" /usr/share/nginx/html/index.html