2017-01-23 13:12:38 +03:00
|
|
|
FROM ubuntu:xenial
|
2016-01-22 11:03:41 +02:00
|
|
|
|
2018-01-02 13:27:33 +03:00
|
|
|
ENV PATH=/usr/lib/go-1.9/bin:$PATH
|
|
|
|
|
2017-01-23 13:12:38 +03:00
|
|
|
RUN \
|
|
|
|
apt-get update && apt-get upgrade -q -y && \
|
2018-01-02 13:27:33 +03:00
|
|
|
apt-get install -y --no-install-recommends golang-1.9 git make gcc libc-dev ca-certificates && \
|
2017-01-23 13:12:38 +03: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 13:27:33 +03:00
|
|
|
apt-get remove -y golang-1.9 git make gcc libc-dev && apt autoremove -y && apt-get clean && \
|
2017-01-23 13:12:38 +03:00
|
|
|
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"]
|