Dockerfile.alltools 411 B

123456789101112131415
  1. # Build Geth in a stock Go builder container
  2. FROM golang:1.16-alpine as builder
  3. RUN apk add --no-cache make gcc musl-dev linux-headers git
  4. ADD . /go-ethereum
  5. RUN cd /go-ethereum && make all
  6. # Pull all binaries 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/* /usr/local/bin/
  10. EXPOSE 8545 8546 30303 30303/udp