see if this helps

This commit is contained in:
Erikas 2024-08-05 12:25:11 +03:00
parent 3eb10f8b85
commit 00df7b0161

View File

@ -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 gcr.io/distroless/static
FROM --platform=$BUILDPLATFORM gcr.io/distroless/static
COPY --from=builder /app/fm /fm
ENTRYPOINT ["/fm"]