aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-19 00:09:20 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-19 00:09:20 +0800
commitbaca0c2251a2587c136999a91449d9b6f7a6c60f (patch)
tree969fa37c001c1ef8c1ccf30d5e38471f05892fd3
parent3e52c9439a876de6c1ca9f6ed992092d4261a48a (diff)
parent1513413412b91582a17ceec5592994e625109bbd (diff)
downloadgo-tangerine-baca0c2251a2587c136999a91449d9b6f7a6c60f.tar
go-tangerine-baca0c2251a2587c136999a91449d9b6f7a6c60f.tar.gz
go-tangerine-baca0c2251a2587c136999a91449d9b6f7a6c60f.tar.bz2
go-tangerine-baca0c2251a2587c136999a91449d9b6f7a6c60f.tar.lz
go-tangerine-baca0c2251a2587c136999a91449d9b6f7a6c60f.tar.xz
go-tangerine-baca0c2251a2587c136999a91449d9b6f7a6c60f.tar.zst
go-tangerine-baca0c2251a2587c136999a91449d9b6f7a6c60f.zip
Merge pull request #523 from fjl/docker-fast
Dockerfile: use fastâ„¢ build steps
-rw-r--r--Dockerfile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index b7e23aaab..966614e71 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,12 +26,11 @@ RUN tar -C /usr/local -xzf go*.tar.gz && go version
ADD https://api.github.com/repos/ethereum/go-ethereum/git/refs/heads/develop file_does_not_exist
## Fetch and install go-ethereum
-RUN go get github.com/tools/godep
-RUN go get -d github.com/ethereum/go-ethereum/...
+RUN mkdir -p $GOPATH/src/github.com/ethereum/
+RUN git clone https://github.com/ethereum/go-ethereum $GOPATH/src/github.com/ethereum/go-ethereum
WORKDIR $GOPATH/src/github.com/ethereum/go-ethereum
RUN git checkout develop
-RUN godep restore
-RUN go install -v ./cmd/ethereum
+RUN GOPATH=$GOPATH:$GOPATH/src/github.com/ethereum/go-ethereum/Godeps/_workspace go install -v ./cmd/ethereum
## Run & expose JSON RPC
ENTRYPOINT ["ethereum", "-rpc=true", "-rpcport=8545"]