github.com/aigarnetwork/aigar@v0.0.0-20191115204914-d59a6eb70f8e/Dockerfile (about)

     1  # Build Geth in a stock Go builder container
     2  FROM golang:1.13-alpine as builder
     3  
     4  RUN apk add --no-cache make gcc musl-dev linux-headers git
     5  
     6  ADD . /aigar
     7  RUN cd /aigar && make geth
     8  
     9  # Pull Geth into a second stage deploy alpine container
    10  FROM alpine:latest
    11  
    12  RUN apk add --no-cache ca-certificates
    13  COPY --from=builder /aigar/build/bin/geth /usr/local/bin/
    14  
    15  EXPOSE 8545 8546 8547 30303 30303/udp
    16  ENTRYPOINT ["geth"]