Browse Source
Merge pull request #1686 from LazyDBA247-Anyvision/master
fix Argument Name, and use the correct one.
pull/1690/head
Chris Lu
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
4 deletions
-
docker/Dockerfile.go_build
-
docker/Dockerfile.go_build_large
|
|
@ -2,8 +2,8 @@ FROM frolvlad/alpine-glibc as builder |
|
|
|
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 |
|
|
|
ARG branch=${branch:-master} |
|
|
|
RUN cd /go/src/github.com/chrislusf/seaweedfs && git checkout $ARG |
|
|
|
ARG BRANCH=${BRANCH:-master} |
|
|
|
RUN cd /go/src/github.com/chrislusf/seaweedfs && git checkout $BRANCH |
|
|
|
RUN cd /go/src/github.com/chrislusf/seaweedfs/weed \ |
|
|
|
&& export LDFLAGS="-X github.com/chrislusf/seaweedfs/weed/util.COMMIT=$(git rev-parse --short HEAD)" \ |
|
|
|
&& go install -ldflags "${LDFLAGS}" |
|
|
|
|
|
@ -2,8 +2,8 @@ FROM frolvlad/alpine-glibc as builder |
|
|
|
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 |
|
|
|
ARG branch=${branch:-master} |
|
|
|
RUN cd /go/src/github.com/chrislusf/seaweedfs && git checkout $ARG |
|
|
|
ARG BRANCH=${BRANCH:-master} |
|
|
|
RUN cd /go/src/github.com/chrislusf/seaweedfs && git checkout $BRANCH |
|
|
|
RUN cd /go/src/github.com/chrislusf/seaweedfs/weed \ |
|
|
|
&& export LDFLAGS="-X github.com/chrislusf/seaweedfs/weed/util.COMMIT=$(git rev-parse --short HEAD)" \ |
|
|
|
&& go install -tags 5BytesOffset -ldflags "${LDFLAGS}" |
|
|
|