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