basicswap/docker/production/bitcoincash/Dockerfile

28 lines
952 B
Text
Raw Normal View History

# https://github.com/NicolasDorier/docker-bitcoin/blob/master/README.md
FROM i_swapclient as install_stage
RUN basicswap-prepare --preparebinonly --bindir=/coin_bin --withcoin=bitcoincash --withoutcoins=particl && \
find /coin_bin -name *.tar.gz -delete
FROM debian:bullseye-slim
COPY --from=install_stage /coin_bin .
2024-11-12 20:43:32 +00:00
ENV BITCOINCASH_DATA /data
2024-11-12 20:43:32 +00:00
RUN groupadd -r bitcoincash && useradd -r -m -g bitcoincash bitcoincash \
&& apt-get update \
&& apt-get install -qq --no-install-recommends gosu \
&& rm -rf /var/lib/apt/lists/* \
2024-11-12 20:43:32 +00:00
&& mkdir "$BITCOINCASH_DATA" \
&& chown -R bitcoincash:bitcoincash "$BITCOINCASH_DATA" \
&& ln -sfn "$BITCOINCASH_DATA" /home/bitcoincash/.bitcoincash \
&& chown -h bitcoincash:bitcoincash /home/bitcoincash/.bitcoincash
VOLUME /data
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 8332 8333 18332 18333 18443 18444
2024-11-12 20:43:32 +00:00
CMD ["/bitcoincash/bitcoind", "--datadir=/data"]