switch to scratch container

This commit is contained in:
Erikas 2024-07-05 00:18:20 +03:00
parent bb1306c735
commit 5a9d44c8ff

View File

@ -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"]