Dockerfile 521 B

123456789101112131415161718
  1. FROM ubuntu:xenial
  2. ENV PATH=/usr/lib/go-1.9/bin:$PATH
  3. RUN \
  4. apt-get update && apt-get upgrade -q -y && \
  5. apt-get install -y --no-install-recommends golang-1.9 git make gcc libc-dev ca-certificates && \
  6. git clone --depth 1 https://github.com/ethereum/go-ethereum && \
  7. (cd go-ethereum && make geth) && \
  8. cp go-ethereum/build/bin/geth /geth && \
  9. apt-get remove -y golang-1.9 git make gcc libc-dev && apt autoremove -y && apt-get clean && \
  10. rm -rf /go-ethereum
  11. EXPOSE 8545
  12. EXPOSE 30303
  13. ENTRYPOINT ["/geth"]