chore(docker): add build flag

add build flag

Signed-off-by: mritd <mritd@linux.com>
This commit is contained in:
mritd 2021-11-09 17:49:34 +08:00
parent a1515b1943
commit 6942ae271c
No known key found for this signature in database
GPG key ID: 150E1851F767CDDD

View file

@ -18,7 +18,7 @@ RUN set -ex \
&& export VERSION=$(git describe --tags) \
&& export COMMIT=$(git rev-parse HEAD) \
&& export TIMESTAMP=$(date "+%F %T") \
&& go build -o /go/bin/hysteria -ldflags \
&& go build -trimpath -o /go/bin/hysteria -ldflags \
"-w -s -X 'main.appVersion=${VERSION}' \
-X 'main.appCommit=${COMMIT}' \
-X 'main.appDate=${TIMESTAMP}'"