Host-customized fork of https://github.com/tecnovert/basicswap/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
816 B
27 lines
816 B
4 years ago
|
# https://github.com/NicolasDorier/docker-bitcoin/blob/master/README.md
|
||
|
|
||
|
FROM i_swapclient as install_stage
|
||
|
|
||
|
RUN basicswap-prepare --preparebinonly --bindir=/coin_bin --withcoin=bitcoin --withoutcoins=particl,litecoin
|
||
|
|
||
|
FROM debian:buster-slim
|
||
|
COPY --from=install_stage /coin_bin .
|
||
|
|
||
|
ENV BITCOIN_DATA /data
|
||
|
|
||
|
RUN groupadd -r bitcoin && useradd -r -m -g bitcoin bitcoin \
|
||
|
&& apt-get update \
|
||
|
&& apt-get install -qq --no-install-recommends gosu \
|
||
|
&& rm -rf /var/lib/apt/lists/* \
|
||
|
&& mkdir "$BITCOIN_DATA" \
|
||
|
&& chown -R bitcoin:bitcoin "$BITCOIN_DATA" \
|
||
|
&& ln -sfn "$BITCOIN_DATA" /home/bitcoin/.bitcoin \
|
||
|
&& chown -h bitcoin:bitcoin /home/bitcoin/.bitcoin
|
||
|
VOLUME /data
|
||
|
|
||
|
COPY entrypoint.sh /entrypoint.sh
|
||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||
|
|
||
|
EXPOSE 8332 8333 18332 18333 18443 18444
|
||
|
CMD ["bitcoind"]
|