Dockerfile 423 B

1234567891011121314151617
  1. # Build Geth in a stock Go builder container
  2. FROM golang:1.10-alpine as builder
  3. RUN apk add --no-cache make gcc musl-dev linux-headers
  4. ADD . /go-ethereum
  5. RUN cd /go-ethereum && make geth
  6. # Pull Geth into a second stage deploy alpine container
  7. FROM alpine:latest
  8. RUN apk add --no-cache ca-certificates
  9. COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
  10. EXPOSE 8545 8546 30303 30303/udp
  11. ENTRYPOINT ["geth"]