mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
23 lines
389 B
Docker
23 lines
389 B
Docker
FROM golang:1.25-alpine AS builder
|
|
|
|
ENV GODEBUG=randseednop=0
|
|
|
|
RUN apk add --no-cache make gcc musl-dev linux-headers git
|
|
|
|
ADD . /XDPoSChain
|
|
RUN cd /XDPoSChain && make XDC
|
|
|
|
FROM alpine:latest
|
|
|
|
WORKDIR /XDPoSChain
|
|
|
|
COPY --from=builder /XDPoSChain/build/bin/XDC /usr/local/bin/XDC
|
|
|
|
RUN chmod +x /usr/local/bin/XDC
|
|
|
|
EXPOSE 8545
|
|
EXPOSE 30303
|
|
|
|
ENTRYPOINT ["/usr/local/bin/XDC"]
|
|
|
|
CMD ["--help"]
|