switch to scratch container
This commit is contained in:
parent
bb1306c735
commit
5a9d44c8ff
@ -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 alpine:3.20
|
FROM scratch
|
||||||
COPY --from=builder /app/fm /fm
|
COPY --from=builder /app/fm /fm
|
||||||
ENTRYPOINT ["/fm"]
|
ENTRYPOINT ["/fm"]
|
||||||
|
Loading…
Reference in New Issue
Block a user