2017-01-23 13:12:38 +03:00
|
|
|
FROM ubuntu:xenial
|
2016-01-22 11:03:41 +02:00
|
|
|
|
2017-01-23 13:12:38 +03: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 14:01:44 +03:00
|
|
|
git clone --depth 1 --branch release/1.7 https://github.com/ethereum/go-ethereum && \
|
2017-01-23 13:12:38 +03: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 11:03:41 +02:00
|
|
|
|
|
|
|
EXPOSE 8545
|
|
|
|
EXPOSE 30303
|
|
|
|
|
2017-01-23 13:12:38 +03:00
|
|
|
ENTRYPOINT ["/geth"]
|