go-ethereum/Dockerfile
2018-02-19 17:42:24 -05:00

17 lines
381 B
Docker

# Provision Geth to a stock Go builder container
FROM golang:1.9.2-alpine as builder
RUN apk add --no-cache make gcc musl-dev linux-headers
ADD . /go-ethereum
RUN cd /go-ethereum && make all
FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/
EXPOSE 8545 8546 30303 30303/udp 30304/udp
ENTRYPOINT ["geth"]
~