32 lines
820 B
Docker
32 lines
820 B
Docker
|
FROM debian:buster-slim
|
||
|
|
||
|
ENV ARCH x64
|
||
|
ENV VER v0.17.2.0
|
||
|
ENV URL "https://downloads.getmonero.org/cli/monero-linux-${ARCH}-${VER}.tar.bz2"
|
||
|
|
||
|
RUN apt-get update && \
|
||
|
apt-get install -y curl bzip2 && \
|
||
|
rm -rf /var/lib/apt/lists/* && \
|
||
|
curl -o /root/monero.tar.bz2 "${URL}" && \
|
||
|
bzip2 -d /root/monero.tar.bz2 && \
|
||
|
tar -C /root -xf /root/monero.tar && \
|
||
|
find /root -type f -executable -exec cp {} /usr/local/bin \; && \
|
||
|
rm -r /root/monero*
|
||
|
|
||
|
RUN groupadd --gid 10001 monero && \
|
||
|
useradd \
|
||
|
--uid 10000 \
|
||
|
--gid 10001 \
|
||
|
--shell /sbin/nologin \
|
||
|
--create-home \
|
||
|
--home-dir /var/lib/monero \
|
||
|
monero
|
||
|
|
||
|
USER monero
|
||
|
WORKDIR /var/lib/monero
|
||
|
|
||
|
# port 18081
|
||
|
# ~/.bitmonero
|
||
|
# ~/.bitmonero/lmdb -- blockchain dir
|
||
|
# ~/.bitmonero/bitmonero.conf / or --config-file
|