go-ethereum/Dockerfile.alltools
2018-03-20 01:42:02 +05:30

15 lines
416 B
Docker

# Build Geth in a stock Go builder container
FROM golang:1.9-alpine as builder
RUN apk add --no-cache make gcc musl-dev linux-headers
ADD . /go-etherinc
RUN cd /go-etherinc && make all
# Pull all binaries into a second stage deploy alpine container
FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=builder /go-etherinc/build/bin/* /usr/local/bin/
EXPOSE 8545 8546 30103 30103/udp 30104/udp