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