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