github.com/digdeepmining/go-atheios@v1.5.13-0.20180902133602-d5687a2e6f43/Dockerfile (about)

     1  # Use Alpine Linux
     2  FROM golang:1.10-alpine as builder 
     3  
     4  # Install basic dependencies
     5  RUN apk update
     6  RUN apk add --no-cache wget
     7  RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
     8  
     9  # Add glibc dependency as previous to 1.6 Geth needs it in order to compile and work properly
    10  RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk
    11  RUN apk add --no-cache make gcc musl-dev linux-headers git glibc-2.28-r0.apk
    12  
    13  # Fetch gath source and build it
    14  RUN git clone https://github.com/atheioschain/go-atheios go-atheios/
    15  RUN cd go-atheios && make gath
    16  
    17  # Pull gath into another container
    18  FROM alpine:latest
    19  
    20  RUN apk add --no-cache ca-certificates
    21  COPY --from=builder /go/go-atheios/build/bin/gath /usr/local/bin/
    22  
    23  # Expose ports
    24  EXPOSE 8696 8696
    25  
    26  # Entry point
    27  ENTRYPOINT ["gath"]