Skip to content

Commit

Permalink
Dockerfile: Prioritize godep's workspace over GOPATH.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Luzzardi <[email protected]>
  • Loading branch information
aluzzardi committed Feb 2, 2015
1 parent 85fa8d4 commit 6c3444a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM golang:1.3
COPY . /go/src/github.com/docker/swarm
WORKDIR /go/src/github.com/docker/swarm

ENV GOPATH $GOPATH:/go/src/github.com/docker/swarm/Godeps/_workspace
ENV GOPATH /go/src/github.com/docker/swarm/Godeps/_workspace:$GOPATH
RUN CGO_ENABLED=0 go install -v -a -tags netgo -ldflags '-w'

EXPOSE 2375
Expand Down

0 comments on commit 6c3444a

Please sign in to comment.