Merge pull request #523 from fjl/docker-fast

Dockerfile: use fast™ build steps
This commit is contained in:
Taylor Gerring 2015-03-18 12:09:20 -04:00
commit baca0c2251

View File

@ -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 ADD https://api.github.com/repos/ethereum/go-ethereum/git/refs/heads/develop file_does_not_exist
## Fetch and install go-ethereum ## Fetch and install go-ethereum
RUN go get github.com/tools/godep RUN mkdir -p $GOPATH/src/github.com/ethereum/
RUN go get -d github.com/ethereum/go-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 WORKDIR $GOPATH/src/github.com/ethereum/go-ethereum
RUN git checkout develop RUN git checkout develop
RUN godep restore RUN GOPATH=$GOPATH:$GOPATH/src/github.com/ethereum/go-ethereum/Godeps/_workspace go install -v ./cmd/ethereum
RUN go install -v ./cmd/ethereum
## Run & expose JSON RPC ## Run & expose JSON RPC
ENTRYPOINT ["ethereum", "-rpc=true", "-rpcport=8545"] ENTRYPOINT ["ethereum", "-rpc=true", "-rpcport=8545"]