rpc-nodes/bsc/Dockerfile

19 lines
536 B
Docker
Raw Permalink Normal View History

2022-03-03 10:14:26 +01:00
# Build Geth in a stock Go builder container
FROM golang:1.16-alpine as builder
ARG BSC_TAG
RUN apk add --no-cache make gcc musl-dev linux-headers git bash
RUN cd / && git clone --branch ${BSC_TAG} --single-branch https://github.com/binance-chain/bsc.git && cd ./bsc && make geth
# Pull Geth into a second stage deploy alpine container
FROM alpine:latest
RUN apk add --no-cache ca-certificates curl jq tini
COPY --from=builder /bsc/build/bin/geth /usr/local/bin/bsc
COPY ./docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["bsc"]