-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (28 loc) · 1.27 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
FROM debian:stretch-slim
LABEL maintainer="[email protected]"
ARG PIVX_UID=51472
ENV PIVX_VERSION=3.1.1
RUN apt-get -qq update && \
apt-get -yq install wget ca-certificates && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY fuzzbawls.gpg /root/.gnupg/trustedkeys.gpg
RUN wget -nv https://github.com/PIVX-Project/PIVX/releases/download/v$PIVX_VERSION/pivx-$PIVX_VERSION-x86_64-linux-gnu.tar.gz \
https://github.com/PIVX-Project/PIVX/releases/download/v$PIVX_VERSION/SHA256SUMS.asc && \
gpgv SHA256SUMS.asc && \
sha256sum -c --ignore-missing SHA256SUMS.asc && \
tar -C /opt -xvzf pivx-$PIVX_VERSION-x86_64-linux-gnu.tar.gz && \
ln -sv pivx-$PIVX_VERSION /opt/pivx && \
ln -sv /opt/pivx/bin/pivxd /usr/local/bin/pivxd && \
ln -sv /opt/pivx/bin/pivx-cli /usr/local/bin/pivx-cli && \
ln -sv /opt/pivx/bin/pivx-tx /usr/local/bin/pivx-tx && \
rm -v /opt/pivx/bin/pivx-qt /opt/pivx/bin/test_pivx /opt/pivx/bin/test_pivx-qt \
pivx-$PIVX_VERSION-x86_64-linux-gnu.tar.gz SHA256SUMS.asc && \
useradd --uid $PIVX_UID --create-home --home-dir /pivx pivx && \
mkdir -m 0750 /pivx/.pivx && \
chown -R pivx:pivx /pivx
USER pivx
EXPOSE 51472
VOLUME ["/pivx/.pivx"]
WORKDIR /pivx
ENTRYPOINT ["/usr/local/bin/pivxd"]
CMD [ "-printtoconsole" ]