2018-01-29 19:44:18 +00:00
|
|
|
FROM ubuntu:xenial
|
|
|
|
|
2018-03-07 21:29:21 +00:00
|
|
|
ENV PATH=/usr/lib/go-1.9/bin:$PATH
|
|
|
|
|
2018-01-29 19:44:18 +00:00
|
|
|
RUN \
|
|
|
|
apt-get update && apt-get upgrade -q -y && \
|
2018-03-07 21:29:21 +00:00
|
|
|
apt-get install -y --no-install-recommends golang-1.9 git make gcc libc-dev ca-certificates && \
|
2018-01-29 19:44:18 +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-03-07 21:29:21 +00:00
|
|
|
apt-get remove -y golang-1.9 git make gcc libc-dev && apt autoremove -y && apt-get clean && \
|
2018-01-29 19:44:18 +00:00
|
|
|
rm -rf /go-ethereum
|
|
|
|
|
|
|
|
EXPOSE 8545
|
|
|
|
EXPOSE 30303
|
|
|
|
|
|
|
|
ENTRYPOINT ["/geth"]
|