github.com/alex403s/heco-chain@v1.2.3-0.20220611014610-f10f4107d8b9/Dockerfile (about) 1 # Support setting various labels on the final image 2 ARG COMMIT="" 3 ARG VERSION="" 4 ARG BUILDNUM="" 5 6 # Build Geth in a stock Go builder container 7 FROM golang:1.16-buster as builder 8 9 ADD . /go-ethereum 10 RUN cd /go-ethereum && go run build/ci.go install ./cmd/geth 11 12 # Pull Geth into a second stage deploy alpine container 13 FROM ubuntu:18.04 14 15 COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ 16 17 EXPOSE 8545 8546 30303 30303/udp 18 ENTRYPOINT ["geth"] 19 20 # Add some metadata labels to help programatic image consumption 21 ARG COMMIT="" 22 ARG VERSION="" 23 ARG BUILDNUM="" 24 25 LABEL commit="$COMMIT" version="$VERSION" buildnum="$BUILDNUM"