even shorter image

This commit is contained in:
Erikas 2024-08-05 12:21:45 +03:00
parent ad9201b921
commit 3eb10f8b85

View File

@ -10,6 +10,5 @@ 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 gcr.io/distroless/static
COPY --from=builder /etc/ssl/cert.pem /etc/ssl/
COPY --from=builder /app/fm /fm
ENTRYPOINT ["/fm"]