2020-12-27 19:39:10 +00:00
|
|
|
FROM i_swapclient as install_stage
|
|
|
|
|
2021-06-28 21:56:45 +00:00
|
|
|
RUN basicswap-prepare --preparebinonly --bindir=/coin_bin --withcoin=litecoin --withoutcoin=particl && \
|
|
|
|
find /coin_bin -name *.tar.gz -delete
|
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 LITECOIN_DATA /data
|
|
|
|
|
2021-06-28 21:56:45 +00:00
|
|
|
RUN groupadd -r litecoin && useradd -r -m -g litecoin litecoin \
|
2020-12-27 19:39:10 +00:00
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -qq --no-install-recommends gosu \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& mkdir "$LITECOIN_DATA" \
|
|
|
|
&& chown -R litecoin:litecoin "$LITECOIN_DATA" \
|
|
|
|
&& ln -sfn "$LITECOIN_DATA" /home/litecoin/.litecoin \
|
|
|
|
&& chown -h litecoin:litecoin /home/litecoin/.litecoin
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
EXPOSE 8332 8333 18332 18333 18443 18444
|
2021-06-28 21:56:45 +00:00
|
|
|
CMD ["/litecoin/litecoind", "--datadir=/data"]
|