-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
52 lines (42 loc) · 2.77 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM zencash/gosu-base:1.17-focal
MAINTAINER cronic@horizen.io
SHELL ["/bin/bash", "-c"]
ARG package=zen-5.0.0-rc1-amd64.deb
COPY ./testing/$package ./testing/$package.asc ./entrypoint.sh ./ca/* /root/
RUN set -eEuo pipefail \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install apt-utils \
&& DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends dist-upgrade \
&& DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install ca-certificates curl wget libgomp1 dnsutils aria2 iproute2 ipv6calc gnupg2 dirmngr \
&& cd /root && sha256sum -c /root/checksums.sha256 \
&& mv /root/*.crt /usr/local/share/ca-certificates/ \
&& update-ca-certificates \
&& export GNUPGHOME="$(mktemp -d)" \
&& ( gpg --batch --keyserver hkp://keyserver.ubuntu.com --recv-keys 219F55740BBF7A1CE368BA45FB7053CE4991B669 c07b19078bb6da872c8a0015b173be29fd0df36d || \
gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 219F55740BBF7A1CE368BA45FB7053CE4991B669 c07b19078bb6da872c8a0015b173be29fd0df36d || \
gpg --batch --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 219F55740BBF7A1CE368BA45FB7053CE4991B669 c07b19078bb6da872c8a0015b173be29fd0df36d || \
gpg --batch --keyserver hkp://pgp.mit.edu:80 --recv-keys 219F55740BBF7A1CE368BA45FB7053CE4991B669 c07b19078bb6da872c8a0015b173be29fd0df36d) \
&& gpg --batch --verify /root/$package.asc /root/$package \
&& ( gpgconf --kill dirmngr || true ) \
&& ( gpgconf --kill gpg-agent || true ) \
&& rm -r "$GNUPGHOME" \
&& dpkg -i /root/$package \
&& rm /root/{${package}*,*.sha256} \
&& mv /root/entrypoint.sh /usr/local/bin/ \
&& chmod +x /usr/local/bin/entrypoint.sh \
&& apt-get -y clean \
&& apt-get -y autoclean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb
# Default testnet P2P communication port, can be changed via PORT env var, OPTS env var
# (e.g. docker run -e PORT=9876 or docker run -e OPTS="-port=9876") or via a "port=9876" line in zen.conf.
EXPOSE 19033
# Default testnet RPC communication port, can be changed via RPC_PORT env var, OPTS env var
# (e.g. docker run -e RPC_PORT=8765 or docker run -e OPTS="-rpcport=8765") or via a "rpcport=8765" line in zen.conf.
# This port should never be mapped to the outside world via the "docker run -p/-P" switch.
EXPOSE 18231
# Data volumes, if you prefer mounting host directories use "-v /path/to/datadir:/mnt/zen",
# "-v /path/to/params:/mnt/zcash-params" command line options. Host directory ownership will be changed to the
# same UID/GID as provided by the "-e LOCAL_USER_ID=" and "-e LOCAL_GRP_ID=" env vars or 9001:9001 if not provided.
VOLUME ["/mnt/zen", "/mnt/zcash-params"]
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["zend"]