Simplify Go dependency handling in Dockerfile.
Also, put quotes around the GOPATH in the Makefile for safety in case of spaces, etc.
This commit is contained in:
parent
f149389d29
commit
c69b733956
|
@ -7,9 +7,8 @@ COPY . /go/src/github.com/prometheus/prometheus
|
|||
|
||||
RUN apk add --update -t build-deps go git mercurial \
|
||||
&& apk add -u musl && rm -rf /var/cache/apk/* \
|
||||
&& go get github.com/tools/godep \
|
||||
&& cd /go/src/$REPO_PATH \
|
||||
&& $GOPATH/bin/godep restore && go get -d \
|
||||
&& cp -a ./Godeps/_workspace/* "$GOPATH" \
|
||||
&& go build -ldflags " \
|
||||
-X $REPO_PATH/version.Version $(cat version/VERSION) \
|
||||
-X $REPO_PATH/version.Revision $(git rev-parse --short HEAD) \
|
||||
|
|
Loading…
Reference in New Issue