diff --git a/Dockerfile b/Dockerfile index b77ed3f..b82b68c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,14 @@ ARG GOLANG_VERSION=1.22.4 FROM --platform=$TARGETPLATFORM library/golang:${GOLANG_VERSION}-alpine AS golang -FROM alpine:3.18 as trivy-amd64 +FROM alpine:3.20 as trivy-amd64 ARG TRIVY_VERSION=0.42.0 RUN set -ex; \ wget -q "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz"; \ tar -xzf trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz; \ mv trivy /usr/local/bin -FROM alpine:3.18 as trivy-arm64 +FROM alpine:3.20 as trivy-arm64 ARG TRIVY_VERSION=0.42.0 RUN set -ex; \ wget -q "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-ARM64.tar.gz"; \ @@ -18,7 +18,7 @@ RUN set -ex; \ FROM trivy-${TARGETARCH} as trivy-base -FROM alpine:3.18 +FROM alpine:3.20 ENV GOTOOLCHAIN=local ENV GOPATH /go ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH