mirror of https://github.com/lukechilds/polar.git
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.
25 lines
591 B
25 lines
591 B
FROM debian:stable-slim
|
|
|
|
ARG BITCOIN_VERSION
|
|
ENV PATH=/opt/bitcoin-${BITCOIN_VERSION}/bin:$PATH
|
|
|
|
RUN apt-get update -y \
|
|
&& apt-get install -y curl gosu \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
RUN curl -SLO https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}-x86_64-linux-gnu.tar.gz \
|
|
&& tar -xzf *.tar.gz -C /opt \
|
|
&& rm *.tar.gz
|
|
|
|
COPY docker-entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod a+x /entrypoint.sh
|
|
|
|
VOLUME ["/home/bitcoin/.bitcoin"]
|
|
|
|
EXPOSE 18443 18444 28334 28335
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD ["bitcoind"]
|
|
|