Skip to content

Commit aeacf34

Browse files
committed
bundle signet miner inside the image. requires python
1 parent 7969829 commit aeacf34

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,19 @@ RUN make -C ./build install
7979

8080
FROM alpine:3.20 AS final
8181

82+
ARG KNOTS_VERSION
83+
8284
COPY --from=builder /usr/local/bin/* /usr/local/bin/
85+
COPY --from=builder /tmp/bitcoin-${KNOTS_VERSION}/test/functional/test_framework /opt/bitcoin/test/functional/test_framework
86+
COPY --from=builder /tmp/bitcoin-${KNOTS_VERSION}/contrib/signet/miner /opt/bitcoin/contrib/signet/miner
8387

8488
RUN apk add --no-cache \
89+
python3 \
8590
tor \
8691
&& adduser -D bitcoin \
8792
&& mkdir /home/bitcoin/.bitcoin \
88-
&& chown bitcoin:bitcoin /home/bitcoin/.bitcoin
93+
&& chown bitcoin:bitcoin /home/bitcoin/.bitcoin \
94+
&& ln -s /opt/bitcoin/contrib/signet/miner /usr/local/bin/miner
8995

9096
USER bitcoin
9197

0 commit comments

Comments
 (0)