2020-12-27 19:39:10 +00:00
|
|
|
FROM i_swapclient as install_stage
|
|
|
|
|
2021-01-05 18:10:33 +00:00
|
|
|
RUN basicswap-prepare --preparebinonly --bindir=/coin_bin --withcoin=monero --withoutcoins=particl
|
2020-12-27 19:39:10 +00:00
|
|
|
|
2022-06-18 17:28:40 +00:00
|
|
|
FROM debian:bullseye-slim
|
2020-12-27 19:39:10 +00:00
|
|
|
|
|
|
|
COPY --from=install_stage /coin_bin .
|
|
|
|
|
|
|
|
ENV MONERO_DATA /data
|
|
|
|
|
|
|
|
RUN groupadd -r monero && useradd -r -m -g monero monero \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -qq --no-install-recommends gosu \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& mkdir -p "$MONERO_DATA" \
|
|
|
|
&& chown -R monero:monero "$MONERO_DATA" \
|
|
|
|
&& ln -sfn "$MONERO_DATA" /home/monero/.monero \
|
|
|
|
&& chown -h monero:monero /home/monero/.monero
|
|
|
|
VOLUME $MONERO_DATA
|
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
2022-07-11 21:36:28 +00:00
|
|
|
CMD ["/monero/monerod", "--non-interactive", "--config-file=/home/monero/.monero/monerod.conf", "--confirm-external-bind"]
|