From 5a9d44c8ff4caefef06e1dc753f6b2599881798e Mon Sep 17 00:00:00 2001 From: Erikas Date: Fri, 5 Jul 2024 00:18:20 +0300 Subject: [PATCH] switch to scratch container --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e382b72..97a610f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,6 @@ ARG TARGETVARIANT ARG version RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH GOARM=${TARGETVARIANT#v} go build -a -ldflags "-w -s -X main.version=$version -extldflags '-static'" -o fm ./cmd/flightlesssomething/main.go -FROM alpine:3.20 +FROM scratch COPY --from=builder /app/fm /fm ENTRYPOINT ["/fm"]