see if this helps
This commit is contained in:
parent
3eb10f8b85
commit
00df7b0161
@ -9,6 +9,6 @@ ARG TARGETVARIANT
|
|||||||
ARG version
|
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
|
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
|
COPY --from=builder /app/fm /fm
|
||||||
ENTRYPOINT ["/fm"]
|
ENTRYPOINT ["/fm"]
|
||||||
|
Loading…
Reference in New Issue
Block a user