-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (20 loc) · 876 Bytes
/
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
FROM debian:jessie-slim
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https wget apt-utils
RUN wget -qO - https://apt.z.cash/zcash.asc | apt-key add - && \
echo "deb [arch=amd64] https://apt.z.cash/ jessie main" | tee /etc/apt/sources.list.d/zcash.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y zcash
RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y apt-transport-https wget apt-utils && \
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN adduser --uid 1001 --system zcash && \
chown -R zcash /home/zcash
USER zcash
VOLUME ["/home/zcash"]
ADD ./start.sh /usr/local/bin/start.sh
HEALTHCHECK --interval=5m --timeout=3s \
CMD zcash-cli getinfo || exit 1
EXPOSE 8233
ENTRYPOINT start.sh