Dockerfile 694 B

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