mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
23 lines
386 B
Docker
23 lines
386 B
Docker
FROM golang:1.10-alpine as builder
|
|
|
|
RUN apk add --no-cache make gcc musl-dev linux-headers
|
|
|
|
ADD . /XDCchain
|
|
RUN cd /XDCchain && make XDC
|
|
|
|
FROM alpine:latest
|
|
|
|
LABEL maintainer="anil@xinfin.org"
|
|
|
|
WORKDIR /XDCchain
|
|
|
|
COPY --from=builder /XDCchain/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"]
|