github.com/anthdm/go-ethereum@v1.8.4-0.20180412101906-60516c83b011/Dockerfile.alltools (about) 1 # Build Geth in a stock Go builder container 2 FROM golang:1.10-alpine as builder 3 4 RUN apk add --no-cache make gcc musl-dev linux-headers 5 6 ADD . /go-ethereum 7 RUN cd /go-ethereum && make all 8 9 # Pull all binaries into a second stage deploy alpine container 10 FROM alpine:latest 11 12 RUN apk add --no-cache ca-certificates 13 COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/ 14 15 RUN addgroup -g 1000 geth && \ 16 adduser -h /root -D -u 1000 -G geth geth && \ 17 chown geth:geth /root 18 19 USER geth 20 21 EXPOSE 8545 8546 30303 30303/udp 30304/udp