forked from BuildOnViction/victionchain
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.node
More file actions
45 lines (34 loc) · 843 Bytes
/
Dockerfile.node
File metadata and controls
45 lines (34 loc) · 843 Bytes
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
FROM golang:1.20-alpine AS builder
RUN apk add --no-cache make gcc musl-dev linux-headers git
ADD . /tomochain
RUN cd /tomochain \
&& make tomo \
&& chmod +x /tomochain/build/bin/tomo
FROM alpine:latest
WORKDIR /tomochain
COPY --from=builder /tomochain/build/bin/tomo /usr/local/bin/tomo
ENV IDENTITY ''
ENV NETWORK_ID '88'
ENV SYNC_MODE 'full'
ENV BOOTNODES ''
ENV EXTIP ''
ENV P2P_PORT '30303'
ENV MAX_PEERS '25'
ENV TXPOOL_GLSLOTS '3072'
ENV TXPOOL_GLQUEUE '768'
ENV NETSTATS_HOST 'netstats-server'
ENV NETSTATS_PORT '3000'
ENV WS_SECRET ''
ENV PASSWORD ''
ENV PRIVATE_KEY ''
ENV ANNOUNCE_TXS ''
ENV DEBUG_MODE ''
ENV STORE_REWARD ''
ENV VERBOSITY 3
RUN apk add --no-cache ca-certificates
COPY docker/tomochain ./
COPY genesis/ ./
EXPOSE 8545
EXPOSE 8546
EXPOSE ${P2P_PORT} ${P2P_PORT}/udp
ENTRYPOINT ["./entrypoint.sh"]