github.com/kisexp/xdchain@v0.0.0-20211206025815-490d6b732aa7/Dockerfile (about) 1 # Build Geth in a stock Go builder container 2 FROM golang:1.15.6-alpine as builder 3 4 RUN apk add --no-cache make gcc musl-dev linux-headers git 5 6 ADD . /go-ethereum 7 RUN cd /go-ethereum && make geth bootnode 8 9 # Pull Geth into a second stage deploy alpine container 10 FROM alpine:latest 11 12 RUN apk add --no-cache ca-certificates 13 COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ 14 COPY --from=builder /go-ethereum/build/bin/bootnode /usr/local/bin/ 15 16 EXPOSE 8545 8546 30303 30303/udp 17 ENTRYPOINT ["geth"]