Run dep restore and build as separate commands in dockerfile

This commit is contained in:
Dan Sosedoff 2014-11-10 12:54:41 -06:00
parent c3d256a774
commit 41cf9cf205

View File

@ -5,8 +5,7 @@ WORKDIR /go/src/pgweb
RUN go get github.com/tools/godep RUN go get github.com/tools/godep
RUN godep restore && \ RUN godep restore
godep go build && \ RUN godep go build && godep go install
godep go install
ENTRYPOINT ["pgweb"] ENTRYPOINT ["pgweb"]