mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
22 lines
398 B
Docker
22 lines
398 B
Docker
# Build XDC in a stock Go builder container
|
|
FROM golang:1.10-alpine as builder
|
|
|
|
RUN apk add --no-cache make gcc musl-dev linux-headers
|
|
|
|
ADD . /XDC
|
|
RUN cd /XDC && make XDC
|
|
|
|
FROM alpine:latest
|
|
|
|
LABEL maintainer="admin@xinfin.org"
|
|
|
|
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", "--help"]
|
|
|
|
|