Merge pull request #416 from fpoli/godep_in_dockerfile
Use godep in Dockerfile
This commit is contained in:
commit
ae9e1c1d60
1 changed files with 3 additions and 1 deletions
|
@ -10,13 +10,15 @@ RUN wget https://go.googlecode.com/files/go1.2.src.tar.gz && tar zxvf go1.2.src.
|
||||||
ENV PATH $PATH:/go/bin:/gocode/bin
|
ENV PATH $PATH:/go/bin:/gocode/bin
|
||||||
ENV GOPATH /gocode
|
ENV GOPATH /gocode
|
||||||
|
|
||||||
|
RUN go get github.com/tools/godep
|
||||||
|
|
||||||
RUN mkdir -p /gocode/src/github.com/drone
|
RUN mkdir -p /gocode/src/github.com/drone
|
||||||
|
|
||||||
ADD . /gocode/src/github.com/drone/drone
|
ADD . /gocode/src/github.com/drone/drone
|
||||||
|
|
||||||
WORKDIR /gocode/src/github.com/drone/drone
|
WORKDIR /gocode/src/github.com/drone/drone
|
||||||
|
|
||||||
RUN make deps
|
RUN godep restore
|
||||||
RUN make
|
RUN make
|
||||||
RUN make install
|
RUN make install
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue