github.com/dominant-strategies/go-quai@v0.28.2/Dockerfile (about)

     1  # Support setting various labels on the final image
     2  ARG COMMIT=""
     3  ARG VERSION=""
     4  ARG BUILDNUM=""
     5  
     6  # Build Quai in a stock Go builder container
     7  FROM golang:1.20-alpine as builder
     8  RUN apk add --no-cache gcc musl-dev linux-headers git
     9  
    10  ADD . /go-quai
    11  
    12  WORKDIR /go-quai
    13  
    14  RUN env GO111MODULE=on go run build/ci.go install ./cmd/go-quai
    15  
    16  # Stage 2
    17  FROM golang:1.20-alpine
    18  
    19  EXPOSE 8546 8547 30303 30303/udp
    20  EXPOSE 8578 8579 30304 30304/udp
    21  EXPOSE 8580 8581 30305 30305/udp
    22  EXPOSE 8582 8583 30306 30306/udp
    23  EXPOSE 8610 8611 30307 30307/udp
    24  EXPOSE 8542 8643 30308 30308/udp
    25  EXPOSE 8674 8675 30309 30309/udp
    26  EXPOSE 8512 8613 30310 30310/udp
    27  EXPOSE 8544 8645 30311 30311/udp
    28  EXPOSE 8576 8677 30312 30312/udp
    29  EXPOSE 8614 8615 30313 30313/udp
    30  EXPOSE 8646 8647 30314 30314/udp
    31  EXPOSE 8678 8679 30315 30315/udp
    32  
    33  COPY --from=builder /go-quai/build/bin ./build/bin
    34  COPY --from=builder /go-quai/VERSION ./VERSION
    35  COPY --from=builder /go-quai/genallocs ./genallocs
    36  
    37  WORKDIR ./