mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-09 13:59:54 +00:00
chore(docker): add build flag
add build flag Signed-off-by: mritd <mritd@linux.com>
This commit is contained in:
parent
a1515b1943
commit
6942ae271c
@ -18,7 +18,7 @@ RUN set -ex \
|
|||||||
&& export VERSION=$(git describe --tags) \
|
&& export VERSION=$(git describe --tags) \
|
||||||
&& export COMMIT=$(git rev-parse HEAD) \
|
&& export COMMIT=$(git rev-parse HEAD) \
|
||||||
&& export TIMESTAMP=$(date "+%F %T") \
|
&& 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}' \
|
"-w -s -X 'main.appVersion=${VERSION}' \
|
||||||
-X 'main.appCommit=${COMMIT}' \
|
-X 'main.appCommit=${COMMIT}' \
|
||||||
-X 'main.appDate=${TIMESTAMP}'"
|
-X 'main.appDate=${TIMESTAMP}'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user