github.com/yuanzimu/bsc@v1.1.4/docker/Dockerfile (about)

     1  FROM golang:1.16-alpine as bsc
     2  
     3  RUN apk add --no-cache make gcc musl-dev linux-headers git bash
     4  
     5  ADD . /bsc
     6  WORKDIR /bsc
     7  RUN make geth
     8  RUN mv /bsc/build/bin/geth /usr/local/bin/geth
     9  
    10  EXPOSE 8545 8547 30303 30303/udp
    11  ENTRYPOINT [ "/usr/local/bin/geth" ]
    12  
    13  FROM ethereum/solc:0.6.4-alpine as bsc-genesis
    14  
    15  RUN apk add --d --no-cache ca-certificates npm nodejs bash alpine-sdk
    16  
    17  RUN git clone https://github.com/binance-chain/bsc-genesis-contract.git /root/genesis \
    18      && rm /root/genesis/package-lock.json && cd /root/genesis && npm install
    19  
    20  COPY docker/init_holders.template /root/genesis/init_holders.template
    21  
    22  COPY --from=bsc /usr/local/bin/geth /usr/local/bin/geth
    23  
    24  ENTRYPOINT [ "/bin/bash" ]