Skip to content

Commit

Permalink
remove bitcoind
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu committed May 15, 2024
1 parent 95dc003 commit 7553afb
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
ARG IPFS_VERSION=0.23.0
ARG GETH_VERSION=1.13
ARG BITCOIN_CLI_VERSION=25.1

# etherium cli
FROM --platform=$TARGETPLATFORM ethereum/client-go:release-${GETH_VERSION} as prepare-geth
# bitcoin cli
FROM --platform=$TARGETPLATFORM alpine as prepare-bitcoin
ARG TARGETPLATFORM
ARG BITCOIN_CLI_VERSION

# Download checksums
ADD https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_CLI_VERSION}/SHA256SUMS ./
# Download bitcoin archive
RUN case "$TARGETPLATFORM" in \
'linux/amd64') ARCHIVE="bitcoin-${BITCOIN_CLI_VERSION}-x86_64-linux-gnu.tar.gz" ;; \
'linux/arm64') ARCHIVE="bitcoin-${BITCOIN_CLI_VERSION}-aarch64-linux-gnu.tar.gz" ;; \
esac \
&& wget "https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_CLI_VERSION}/$ARCHIVE" \
&& grep " $ARCHIVE\$" SHA256SUMS | sha256sum -c - \
&& tar -xzf "$ARCHIVE" \
&& rm "$ARCHIVE"

# ipfs
FROM ipfs/go-ipfs:v${IPFS_VERSION} as prepare-ipfs
Expand All @@ -28,7 +11,6 @@ FROM ipfs/go-ipfs:v${IPFS_VERSION} as prepare-ipfs
FROM ubuntu:jammy

ARG TARGETARCH
ARG BITCOIN_CLI_VERSION

# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
LABEL org.opencontainers.image.base.name="ubuntu:jammy"
Expand Down Expand Up @@ -60,8 +42,6 @@ RUN \

# copy IPFS binary
COPY --from=prepare-ipfs /usr/local/bin/ipfs /usr/bin/ipfs
# copy bitcoin-cli
COPY --from=prepare-bitcoin /bitcoin-${BITCOIN_CLI_VERSION}/bin/bitcoin-cli /usr/bin/bitcoin-cli
# copy geth
COPY --from=prepare-geth /usr/local/bin/geth /usr/bin/geth

Expand Down

0 comments on commit 7553afb

Please sign in to comment.