From 1ca6f788485a61ee7ba7988cfc4b05a81a9bfa6a Mon Sep 17 00:00:00 2001 From: Macy Date: Thu, 24 Oct 2024 20:15:54 -0700 Subject: [PATCH] Even leaner - running image ~36 MB footprint w/ alpine linux and wiretap binary --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index abbbb1d..1160baa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ RUN echo "I am building go for GOOS:$TARGETOS, GOARCH:$TARGETARCH" > /log RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go mod download && go mod verify RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-w -s" -v -o /wiretap wiretap.go -FROM golang:1.23-alpine AS runner +FROM alpine:3.20.3 AS runner ARG TARGETPLATFORM ARG BUILDPLATFORM