bump monero

This commit is contained in:
Kukks 2020-05-15 08:58:08 +02:00
parent 6d4f22c869
commit e38329e64f
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.15.0.5.tar.bz2
ENV FILE_CHECKSUM=6cae57cdfc89d85c612980c6a71a0483bbfc1b0f56bbb30e87e933e7ba6fc7e7
RUN apt-get update \
&& apt-get -y --no-install-recommends install bzip2 ca-certificates wget curl
RUN wget -qO $FILE https://dlsrc.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 $@