go-ethereum/Dockerfile
wit765 f234dd896e
build: upgrade go to v1.25.1 (#1476)
Co-authored-by: wit <wit765765346@gmail>
2025-09-11 16:35:39 +08:00

21 lines
362 B
Docker

FROM golang:1.25-alpine AS builder
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"]