-
Notifications
You must be signed in to change notification settings - Fork 35
/
Dockerfile.gowaves-it
70 lines (54 loc) · 1.58 KB
/
Dockerfile.gowaves-it
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM golang:1.23.4-alpine3.20 as builder
LABEL wavesplatform-gowaves-itests-tmp=true
WORKDIR /app
RUN apk add --no-cache make musl-dev gcc
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY Makefile .
COPY cmd cmd
COPY pkg pkg
ARG WITH_RACE_SUFFIX=""
RUN make build-node-native${WITH_RACE_SUFFIX}
FROM alpine:3.21.0
ENV TZ=Etc/UTC \
APP_USER=gowaves
RUN apk add --no-cache bind-tools curl
RUN addgroup -S $APP_USER \
&& adduser -S $APP_USER -G $APP_USER
RUN mkdir -p /home/gowaves/config /home/gowaves/wallet
ENV CONFIG_PATH=/home/gowaves/config/gowaves-it.json \
STATE_PATH=/home/gowaves/ \
WALLET_PATH=/home/gowaves/wallet/go.wallet
USER $APP_USER
COPY --from=builder /app/build/bin/native/node /app/node
HEALTHCHECK CMD curl -f http://localhost:6869/node/status || exit 1
STOPSIGNAL SIGINT
CMD /app/node \
-cfg-path=$CONFIG_PATH \
-peers=$PEERS \
-state-path=$STATE_PATH \
-wallet-path=$WALLET_PATH \
-wallet-password=$WALLET_PASSWORD \
-blockchain-type=custom \
-enable-grpc-api=true \
-grpc-address=$GRPC_ADDR \
-api-address=$API_ADDR \
-api-key=itest-api-key \
-declared-address=$DECLARED_ADDR \
-bind-address=$BIND_ADDR \
-build-extended-api \
-build-state-hashes \
-serve-extended-api \
-log-level=debug \
-log-network \
-log-fsm \
-obsolescence=1h \
-reward=$DESIRED_REWARD \
-vote=$SUPPORTED_FEATURES \
-disable-ntp \
-microblock-interval 2s \
-blacklist-residence-time 0 \
-rate-limiter-opts="rps=100&burst=100" \
-min-peers-mining=2 \
-disable-miner=$DISABLE_MINER \