forked from mirror/serenity
Fix docker build
This commit is contained in:
parent
fedd57131f
commit
fe3c2b4bdf
@ -11,7 +11,7 @@ ENV GOARCH=$TARGETARCH
|
|||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk add git build-base \
|
&& apk add git build-base \
|
||||||
&& export COMMIT=$(git rev-parse --short HEAD) \
|
&& export COMMIT=$(git rev-parse --short HEAD) \
|
||||||
&& export VERSION=$(go run ./cmd/internal/read_tag) \
|
&& export VERSION=$(go run github.com/sagernet/sing-box/cmd/internal/read_tag@latest) \
|
||||||
&& go build -v -trimpath \
|
&& go build -v -trimpath \
|
||||||
-o /go/bin/serenity \
|
-o /go/bin/serenity \
|
||||||
-ldflags "-X \"github.com/sagernet/serenity/cmd/serenity.Version=$VERSION\" -s -w -buildid=" \
|
-ldflags "-X \"github.com/sagernet/serenity/cmd/serenity.Version=$VERSION\" -s -w -buildid=" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user