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 && \
|
|
|
|
git clone --depth 1 https://github.com/ethereum/go-ethereum && \
|
|
|
|
(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"]
|