fix: distroless

This commit is contained in:
Mike Evans 2023-05-16 12:05:26 +01:00 committed by GitHub
parent cb8b3df2d2
commit 2971d33915
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@ RUN set -ex \
-o /go/bin/sing-box \ -o /go/bin/sing-box \
-ldflags "-X \"github.com/sagernet/sing-box/constant.Version=$VERSION\" -s -w -buildid=" \ -ldflags "-X \"github.com/sagernet/sing-box/constant.Version=$VERSION\" -s -w -buildid=" \
./cmd/sing-box ./cmd/sing-box
FROM gcr.io/distroless/static-debian11:nonroot AS dist FROM gcr.io/distroless/static-debian11:latest AS dist
LABEL maintainer="Evans Mike <etnperlong@gmail.com>" LABEL maintainer="Evans Mike <etnperlong@gmail.com>"
COPY --from=builder /go/bin/sing-box / COPY --from=builder /go/bin/sing-box /
CMD ["/sing-box"] ENTRYPOINT ["/sing-box"]

View file

@ -13,7 +13,7 @@ RUN set -ex \
-o /go/bin/sing-box \ -o /go/bin/sing-box \
-ldflags "-X \"github.com/sagernet/sing-box/constant.Version=$VERSION\" -s -w -buildid=" \ -ldflags "-X \"github.com/sagernet/sing-box/constant.Version=$VERSION\" -s -w -buildid=" \
./cmd/sing-box ./cmd/sing-box
FROM gcr.io/distroless/static-debian11:nonroot AS dist FROM gcr.io/distroless/static-debian11:latest AS dist
LABEL maintainer="Evans Mike <etnperlong@gmail.com>" LABEL maintainer="Evans Mike <etnperlong@gmail.com>"
COPY --from=builder /go/bin/sing-box / COPY --from=builder /go/bin/sing-box /
CMD ["/sing-box"] ENTRYPOINT ["/sing-box"]

View file

@ -13,7 +13,7 @@ RUN set -ex \
-o /go/bin/sing-box \ -o /go/bin/sing-box \
-ldflags "-X \"github.com/sagernet/sing-box/constant.Version=$VERSION\" -s -w -buildid=" \ -ldflags "-X \"github.com/sagernet/sing-box/constant.Version=$VERSION\" -s -w -buildid=" \
./cmd/sing-box ./cmd/sing-box
FROM gcr.io/distroless/static-debian11:nonroot AS dist FROM gcr.io/distroless/static-debian11:latest AS dist
LABEL maintainer="Evans Mike <etnperlong@gmail.com>" LABEL maintainer="Evans Mike <etnperlong@gmail.com>"
COPY --from=builder /go/bin/sing-box / COPY --from=builder /go/bin/sing-box /
CMD ["/sing-box"] ENTRYPOINT ["/sing-box"]