fix: patch base image (brotli CVE found by Trivy)
build-scan-deploy / build (push) Successful in 1m20s
build-scan-deploy / build (push) Successful in 1m20s
This commit is contained in:
1 parent
e4f9773a58
commit
cf4cc1dbd4
1 file changed
+2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user