|
@ -6,7 +6,7 @@ ARG BRANCH=${BRANCH:-master} |
|
|
RUN cd /go/src/github.com/chrislusf/seaweedfs && git checkout $BRANCH |
|
|
RUN cd /go/src/github.com/chrislusf/seaweedfs && git checkout $BRANCH |
|
|
RUN cd /go/src/github.com/chrislusf/seaweedfs/weed \ |
|
|
RUN cd /go/src/github.com/chrislusf/seaweedfs/weed \ |
|
|
&& export 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 -tags 5BytesOffset -ldflags "${LDFLAGS}" |
|
|
|
|
|
|
|
|
&& CGO_ENABLED=0 go install -tags 5BytesOffset -ldflags "-extldflags -static ${LDFLAGS}" |
|
|
|
|
|
|
|
|
FROM alpine AS final |
|
|
FROM alpine AS final |
|
|
LABEL author="Chris Lu" |
|
|
LABEL author="Chris Lu" |
|
|