forked from numenk/go-quai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (29 loc) · 1.29 KB
/
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
38
# Support setting various labels on the final image
ARG COMMIT=""
ARG VERSION=""
ARG BUILDNUM=""
# Build Geth in a stock Go builder container
FROM golang:1.19-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.19-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
WORKDIR ./
CMD ./build/bin/go-quai --$NETWORK --syncmode full --http --http.vhosts="*" --ws --mine --miner.threads 1 --miner.etherbase $COINBASE_ADDR --http.addr 0.0.0.0 --http.api eth,net,web3,quai,txpool,debug --ws.addr 0.0.0.0 --ws.api eth,net,web3,quai,txpool,debug --port $TCP_PORT --http.port $HTTP_PORT --ws.port $WS_PORT --ws.origins="*" --http.corsdomain="*" --gcmode archive $BOOTNODE $REGION $ZONE $SUB $DOM