Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"; \
Expand All @@ -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
Expand Down