github.com/cryptotooltop/go-ethereum@v0.0.0-20231103184714-151d1922f3e5/Dockerfile.mockccc (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 scrolltech/go-rust-builder:go-1.19-rust-nightly-2022-12-10 as builder 8 9 ADD . /go-ethereum 10 RUN cd /go-ethereum && env GO111MODULE=on go run build/ci.go install ./cmd/geth 11 12 # Pull Geth into a second stage deploy alpine container 13 FROM ubuntu:20.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"