gitlab.com/lightnet1/evrynet-node@v1.1.0/Dockerfile (about)

     1  # Build Geth in a stock Go builder container
     2  FROM golang:1.12-alpine as builder
     3  
     4  RUN apk add --no-cache make gcc musl-dev linux-headers git curl
     5  
     6  WORKDIR /evrynet-node
     7  ADD . .
     8  
     9  # Load all project dependencies
    10  RUN go mod download
    11  
    12  # Install golangci-lint tool
    13  RUN curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
    14  				sh -s -- -b $GOPATH/bin v1.21.0
    15  
    16  # Build the gev binary
    17  RUN go run build/ci.go install
    18  
    19  RUN go build ./cmd/gev
    20  RUN go build ./cmd/bootnode
    21  
    22  # Pull Geth into a second stage deploy alpine container
    23  FROM alpine:latest
    24  
    25  RUN apk add --no-cache ca-certificates
    26  COPY --from=builder /evrynet-node/gev /usr/local/bin/
    27  COPY --from=builder /evrynet-node/bootnode /usr/local/bin/
    28  
    29  #--rpcport 8545
    30  #--wsport 8546
    31  #--graphql.port 8547
    32  #--port 30303
    33  EXPOSE 8545 8546 8547 30303 30303/udp
    34  ENTRYPOINT ["gev"]
    35  CMD ["--rpc", "--rpcaddr","0.0.0.0", "--rpcvhosts", "*"]