Skip to content

Commit

Permalink
fix(docker): use official bitcoind release
Browse files Browse the repository at this point in the history
  • Loading branch information
storopoli committed Oct 11, 2024
1 parent d1cd09e commit 01507d3
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions docker/bitcoind/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@ FROM ubuntu:24.04

WORKDIR /app

# Set bitcoind version and architecture as build arguments
ARG BITCOIND_VERSION="28.0"
ARG BITCOIND_ARCH="x86_64-linux-gnu"
ARG SHASUM="7fe294b02b25b51acb8e8e0a0eb5af6bbafa7cd0c5b0e5fcbb61263104a82fbc"

# Install necessary dependencies and add PPA
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:luke-jr/bitcoincore && \
apt-get update && \
apt-get install -y \
bitcoind \
curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Download, verify, and install bitcoind
RUN curl -fsSLO --proto '=https' --tlsv1.2 \
"https://bitcoincore.org/bin/bitcoin-core-$BITCOIND_VERSION/bitcoin-$BITCOIND_VERSION-$BITCOIND_ARCH.tar.gz" && \
echo "$SHASUM bitcoin-$BITCOIND_VERSION-$BITCOIND_ARCH.tar.gz" | sha256sum -c - && \
tar xzf "bitcoin-$BITCOIND_VERSION-$BITCOIND_ARCH.tar.gz" && \
install -m 0755 -t /usr/local/bin bitcoin-$BITCOIND_VERSION/bin/* && \
rm -rf "bitcoin-$BITCOIND_VERSION-$BITCOIND_ARCH.tar.gz" "bitcoin-$BITCOIND_VERSION"

# Create a directory for Bitcoin data
RUN mkdir -p /root/.bitcoin
Expand Down

0 comments on commit 01507d3

Please sign in to comment.