switch to alpine image

This commit is contained in:
Erikas 2024-07-04 23:52:42 +03:00
parent b4556330b6
commit 4781076cc8

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 scratch
FROM alpine:3.20
COPY --from=builder /app/fm /fm
ENTRYPOINT ["/fm"]