-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
31 lines (24 loc) · 1.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM dfinlab/build-env as builder
WORKDIR /btcpow
COPY . .
RUN cd /btcpow && ./autogen.sh && ./configure --disable-wallet --without-gui && make
# Pull thor into a second stage deploy ubuntu container
FROM ubuntu:18.04
COPY --from=builder /btcpow/src/bitcoind /usr/local/bin/
COPY --from=builder /btcpow/src/bitcoin-cli /usr/local/bin/
COPY --from=builder /btcpow/src/bitcoin-tx /usr/local/bin/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libboost*.so* /usr/lib/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libssl*.so* /usr/lib/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libevent*.so* /usr/lib/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libcrypto*.so* /usr/lib/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libminiupnpc*.so* /usr/lib/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libzmq*.so* /usr/lib/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libstdc++*.so* /usr/lib/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libsodium*.so* /usr/lib/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libpgm*.so* /usr/lib/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libnorm*.so* /usr/lib/
COPY --from=builder /usr/lib/libdb*.so* /usr/lib/
RUN mkdir /data
COPY bitcoin.conf /data/bitcoin.conf
EXPOSE 8332 9209
ENTRYPOINT ["bitcoind", "-datadir=/data"]