Skip to content

Commit c0ce323

Browse files
committed
Use explicit branch and godep
1 parent 68f6ddc commit c0ce323

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ENV DEBIAN_FRONTEND noninteractive
1212
RUN apt-get update && apt-get upgrade -y
1313
RUN apt-get install -y git mercurial build-essential software-properties-common wget pkg-config libgmp3-dev libreadline6-dev libpcre3-dev libpcre++-dev
1414

15-
## Install Qt5.4
15+
## Install Qt5.4 (not required for CLI)
1616
# RUN add-apt-repository ppa:beineri/opt-qt54-trusty -y
1717
# RUN apt-get update -y
1818
# RUN apt-get install -y qt54quickcontrols qt54webengine mesa-common-dev libglu1-mesa-dev
@@ -26,11 +26,15 @@ RUN tar -C /usr/local -xzf go*.tar.gz && go version
2626
ADD https://api.github.com/repos/ethereum/go-ethereum/git/refs/heads/develop file_does_not_exist
2727

2828
## Fetch and install go-ethereum
29-
RUN go get -u -v -d github.com/ethereum/go-ethereum/...
29+
RUN go get -v github.com/tools/godep
30+
RUN go get -v -d github.com/ethereum/go-ethereum/...
3031
WORKDIR $GOPATH/src/github.com/ethereum/go-ethereum
31-
RUN ETH_DEPS=$(go list -f '{{.Imports}} {{.TestImports}} {{.XTestImports}}' github.com/ethereum/go-ethereum/... | sed -e 's/\[//g' | sed -e 's/\]//g' | sed -e 's/C //g'); if [ "$ETH_DEPS" ]; then go get $ETH_DEPS; fi
32+
RUN git checkout develop
33+
RUN godep restore
3234
RUN go install -v ./cmd/ethereum
3335

3436
## Run & expose JSON RPC
35-
ENTRYPOINT ["ethereum", "-rpc=true", "-rpcport=8080"]
36-
EXPOSE 8080
37+
ENTRYPOINT ["ethereum", "-rpc=true", "-rpcport=8545"]
38+
EXPOSE 8545
39+
40+

0 commit comments

Comments
 (0)