From a47e8f4c06c916552bca5ccc00d67e889b04968b Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 18 Oct 2020 21:07:37 -0700 Subject: [PATCH] adjust --- docker/Dockerfile.go_build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile.go_build b/docker/Dockerfile.go_build index 3628d0c0d..213ed2dee 100644 --- a/docker/Dockerfile.go_build +++ b/docker/Dockerfile.go_build @@ -3,7 +3,7 @@ RUN apk add git go g++ RUN mkdir -p /go/src/github.com/chrislusf/ RUN git clone https://github.com/chrislusf/seaweedfs /go/src/github.com/chrislusf/seaweedfs RUN cd /go/src/github.com/chrislusf/seaweedfs/weed \ - && LDFLAGS="-X github.com/chrislusf/seaweedfs/weed/util.COMMIT=$(git rev-parse --short HEAD)" \ + && export LDFLAGS="-X github.com/chrislusf/seaweedfs/weed/util.COMMIT=$(git rev-parse --short HEAD)" \ && go install -ldflags ${LDFLAGS} FROM alpine AS final