2017-01-23 02:12:38 -08:00
|
|
|
FROM ubuntu:xenial
|
2016-01-22 01:03:41 -08:00
|
|
|
|
2017-01-23 02:12:38 -08:00
|
|
|
RUN \
|
|
|
|
apt-get update && apt-get upgrade -q -y && \
|
|
|
|
apt-get install -y --no-install-recommends golang git make gcc libc-dev ca-certificates && \
|
2017-09-14 04:01:44 -07:00
|
|
|
git clone --depth 1 --branch release/1.7 https://github.com/ethereum/go-ethereum && \
|
2017-01-23 02:12:38 -08:00
|
|
|
(cd go-ethereum && make geth) && \
|
|
|
|
cp go-ethereum/build/bin/geth /geth && \
|
|
|
|
apt-get remove -y golang git make gcc libc-dev && apt autoremove -y && apt-get clean && \
|
|
|
|
rm -rf /go-ethereum
|
2016-01-22 01:03:41 -08:00
|
|
|
|
|
|
|
EXPOSE 8545
|
|
|
|
EXPOSE 30303
|
|
|
|
|
2017-01-23 02:12:38 -08:00
|
|
|
ENTRYPOINT ["/geth"]
|