Skip to content

Commit

Permalink
bundle signet miner inside the image. requires python
Browse files Browse the repository at this point in the history
  • Loading branch information
1ma committed Jul 30, 2024
1 parent 7969829 commit aeacf34
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,19 @@ RUN make -C ./build install

FROM alpine:3.20 AS final

ARG KNOTS_VERSION

COPY --from=builder /usr/local/bin/* /usr/local/bin/
COPY --from=builder /tmp/bitcoin-${KNOTS_VERSION}/test/functional/test_framework /opt/bitcoin/test/functional/test_framework
COPY --from=builder /tmp/bitcoin-${KNOTS_VERSION}/contrib/signet/miner /opt/bitcoin/contrib/signet/miner

RUN apk add --no-cache \
python3 \
tor \
&& adduser -D bitcoin \
&& mkdir /home/bitcoin/.bitcoin \
&& chown bitcoin:bitcoin /home/bitcoin/.bitcoin
&& chown bitcoin:bitcoin /home/bitcoin/.bitcoin \
&& ln -s /opt/bitcoin/contrib/signet/miner /usr/local/bin/miner

USER bitcoin

Expand Down

0 comments on commit aeacf34

Please sign in to comment.