Monero 0.17

This commit is contained in:
Kukks 2020-09-24 08:37:50 +02:00
parent 4654a313c1
commit 9b3a37f157
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,2 @@
.git
README.md

View File

@ -0,0 +1,36 @@
# runtime stage
FROM debian:stretch-slim
ENV FILE=monero-linux-x64-v0.17.0.0.tar.bz2
ENV FILE_CHECKSUM=29a1a3d2d4a6bcbaccba0a8016be43c36c88523c358c721d9886e1f0c5ae662d
RUN apt-get update \
&& apt-get -y --no-install-recommends install bzip2 ca-certificates wget curl
RUN wget -qO $FILE https://downloads.getmonero.org/cli/$FILE
RUN echo "$FILE_CHECKSUM $FILE" | sha256sum -c -
RUN mkdir -p extracted
RUN tar -jxvf $FILE -C /extracted
RUN find /extracted/ -type f -print0 | xargs -0 chmod a+x
RUN find /extracted/ -type f -print0 | xargs -0 mv -t /usr/local/bin/
RUN rm -rf extracted && rm $FILE
RUN apt-get -y autoremove \
&& apt-get clean autoclean \
&& rm -rf /var/lib/{apt,dpkg,cache,log}
COPY ./scripts /scripts/
RUN find /scripts/ -type f -print0 | xargs -0 chmod a+x
# Create monero user
RUN adduser --system --group --disabled-password monero && \
mkdir -p /wallet /home/monero/.bitmonero && \
chown -R monero:monero /home/monero/.bitmonero && \
chown -R monero:monero /wallet
VOLUME /home/monero/.bitmonero
VOLUME /wallet
EXPOSE 18080
EXPOSE 18081
EXPOSE 18082
# switch to user monero
USER monero

View File

@ -0,0 +1 @@
curl $@