forked from abracadaniel/cardano-pool-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.pool
69 lines (61 loc) · 1.98 KB
/
Dockerfile.pool
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
FROM arradev/cardano-node:latest AS node
FROM arradev/cardano-address:latest AS address
FROM arradev/bech32:latest AS bech32
FROM arradev/cncli:latest AS cncli
#FROM arradev/cardano-voting:latest AS voting
FROM debian:stable-20210816-slim
LABEL maintainer="[email protected]"
SHELL ["/bin/bash", "-c"]
WORKDIR /
# Install tools
RUN apt-get update -y && apt-get install -y vim procps dnsutils bc curl nano cron python3 python3-pip tmux jq wget \
&& apt-get clean
RUN pip3 install pytz
# Copy compiled binaries
COPY --from=node /bin/cardano* /bin/
COPY --from=node /lib/libsodium* /lib/
COPY --from=node /lib/libsecp256k1* /lib/
COPY --from=cncli /bin/cncli /bin/
COPY --from=address /bin/cardano-address /bin/
COPY --from=bech32 /bin/bech32 /bin/
#COPY --from=voting /bin/voting-tools /bin/
#COPY --from=voting /bin/voter-registration /bin/
# Expose ports
## cardano-node, EKG, Prometheus
EXPOSE 3000 12788 12798
# ENV variables
ENV NODE_PORT="3000" \
NODE_NAME="node1" \
NODE_TOPOLOGY="" \
NODE_RELAY="False" \
CARDANO_NETWORK="main" \
EKG_PORT="12788" \
PROMETHEUS_PORT="12798" \
RESOLVE_HOSTNAMES="False" \
REPLACE_EXISTING_CONFIG="False" \
POOL_TICKER="" \
POOL_PLEDGE="100000000000" \
POOL_COST="10000000000" \
POOL_MARGIN="0.05" \
AUTO_TOPOLOGY="True" \
METADATA_URL="" \
PUBLIC_RELAY_IP="TOPOLOGY" \
PUBLIC_RELAY_HOST="" \
WAIT_FOR_SYNC="True" \
PATH="/root/.local/bin/:/scripts/:/scripts/functions/:/cardano-node/scripts/:${PATH}" \
LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}" \
CARDANO_NODE_SOCKET_PATH="DEFAULT" \
CNCLI_SYNC="True" \
STATUS_PANEL="False" \
PT_API_KEY="" \
PT_SENDTIP="False" \
PT_SENTSLOTS="False" \
LANG="C.UTF-8"
# Add config
ADD cfg-templates/ /cfg-templates/
RUN mkdir -p /config/
VOLUME /config/
# Add scripts
ADD scripts/ /scripts/
RUN chmod -R +x /scripts/
ENTRYPOINT ["/scripts/start-cardano-node"]