even shorter image
This commit is contained in:
parent
ad9201b921
commit
3eb10f8b85
@ -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
|
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 gcr.io/distroless/static
|
||||||
COPY --from=builder /etc/ssl/cert.pem /etc/ssl/
|
|
||||||
COPY --from=builder /app/fm /fm
|
COPY --from=builder /app/fm /fm
|
||||||
ENTRYPOINT ["/fm"]
|
ENTRYPOINT ["/fm"]
|
||||||
|
Loading…
Reference in New Issue
Block a user