2017-01-23 10:12:38 +00:00
|
|
|
FROM ubuntu:xenial
|
2016-01-22 09:03:41 +00:00
|
|
|
|
2018-01-02 10:27:33 +00:00
|
|
|
ENV PATH=/usr/lib/go-1.9/bin:$PATH
|
|
|
|
|
2017-01-23 10:12:38 +00:00
|
|
|
RUN \
|
|
|
|
apt-get update && apt-get upgrade -q -y && \
|
2018-01-02 10:27:33 +00:00
|
|
|
apt-get install -y --no-install-recommends golang-1.9 git make gcc libc-dev ca-certificates && \
|
2017-01-23 10:12:38 +00:00
|
|
|
git clone --depth 1 https://github.com/ethereum/go-ethereum && \
|
|
|
|
(cd go-ethereum && make geth) && \
|
|
|
|
cp go-ethereum/build/bin/geth /geth && \
|
2018-01-02 10:27:33 +00:00
|
|
|
apt-get remove -y golang-1.9 git make gcc libc-dev && apt autoremove -y && apt-get clean && \
|
2017-01-23 10:12:38 +00:00
|
|
|
rm -rf /go-ethereum
|
2016-01-22 09:03:41 +00:00
|
|
|
|
|
|
|
EXPOSE 8545
|
|
|
|
EXPOSE 30303
|
|
|
|
|
2017-01-23 10:12:38 +00:00
|
|
|
ENTRYPOINT ["/geth"]
|