From 3614c80080a21417afcf61818cf4994d8f35ddd2 Mon Sep 17 00:00:00 2001 From: mritd Date: Fri, 7 Aug 2020 12:11:38 +0800 Subject: [PATCH] chore(docker): fix special date format causing build failed fix special date format causing build failed Signed-off-by: mritd --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 052e842..c023ea0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,9 +29,9 @@ WORKDIR /go/src/github.com/tobyxdd/hysteria/cmd # TODO: Is it necessary to remove "-w -s" to add debugging information? RUN set -ex \ && go build -o /go/bin/hysteria -ldflags \ - "-w -s -X main.appVersion=${VERSION} \ - -X main.appCommit=${COMMIT} \ - -X main.appDate=${TIMESTAMP}" + "-w -s -X 'main.appVersion=${VERSION}' \ + -X 'main.appCommit=${COMMIT}' \ + -X 'main.appDate=${TIMESTAMP}'" # multi-stage builds to create the final image FROM alpine:3.12 AS dist