github.com/JFJun/bsc@v1.0.0/Dockerfile (about)

     1  FROM golang:1.15-alpine as builder
     2  
     3  RUN apk add --no-cache make gcc musl-dev linux-headers git bash
     4  
     5  # Temporarily pull a custom Go bundle
     6  ADD https://golang.org/dl/go1.15.5.src.tar.gz /tmp/go.tar.gz
     7  RUN (cd /tmp && tar -xf go.tar.gz)
     8  RUN (cd /tmp/go/src && ./make.bash)
     9  ENV PATH="/tmp/go/bin:${PATH}"
    10  
    11  ADD . /go-ethereum
    12  RUN cd /go-ethereum && make geth
    13  
    14  # Pull Geth into a second stage deploy alpine container
    15  FROM alpine:latest
    16  
    17  RUN apk add --no-cache ca-certificates
    18  COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
    19  
    20  EXPOSE 8545 8546 8547 30303 30303/udp
    21  ENTRYPOINT ["geth"]