-
Notifications
You must be signed in to change notification settings - Fork 62
/
Dockerfile.pool
73 lines (64 loc) · 2.06 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
70
71
72
73
ARG NODE_VERSION
FROM arradev/cardano-node:${NODE_VERSION} AS node
FROM arradev/cardano-addresses:latest AS addresses
FROM arradev/bech32:latest AS bech32
FROM arradev/cncli:latest AS cncli
FROM arradev/mithril-client:latest AS mithril-client
FROM debian:stable-slim
LABEL maintainer="[email protected]"
SHELL ["/bin/bash", "-c"]
WORKDIR /
# Install tools
RUN apt-get update -y \
&& apt-get install -y libssl-dev vim procps dnsutils bc curl nano cron python3 python3-pip tmux jq wget lsof iproute2 \
&& apt-get clean
RUN rm /usr/lib/python3.11/EXTERNALLY-MANAGED && 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=addresses /bin/cardano-address /bin/
COPY --from=bech32 /bin/bech32 /bin/
COPY --from=mithril-client /bin/mithril-client /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" \
HOSTNAME="" \
METADATA_URL="" \
PUBLIC_RELAY_IP="TOPOLOGY" \
PUBLIC_RELAY_HOSTS="" \
WAIT_FOR_SYNC="True" \
PATH="/root/.local/bin/:/scripts/:/scripts/functions/:/cardano-node/scripts/:${PATH}" \
LD_LIBRARY_PATH="/usr/local/lib" \
CARDANO_NODE_SOCKET_PATH="DEFAULT" \
CNCLI_SYNC="True" \
STATUS_PANEL="False" \
PT_API_KEY="" \
PT_SENDTIP="False" \
PT_SENDSLOTS="False" \
LANG="C.UTF-8" \
ENABLEP2P="False"
# 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"]