Commit bad8051 1 parent 1bb6bc3 commit bad8051 Copy full SHA for bad8051
File tree 1 file changed +4
-18
lines changed
1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -43,29 +43,15 @@ FROM debian:stable-slim
43
43
44
44
ENV DEBIAN_FRONTEND=non-interactive
45
45
46
- RUN useradd -ms /bin/bash bitcoin
47
-
48
- # Switch to root user
49
- USER root
50
-
51
46
# Only install what we need at runtime
52
47
RUN apt-get update && apt-get install -y \
53
- libminiupnpc-dev libnatpmp-dev libevent-dev libzmq3-dev libsqlite3-dev
54
-
55
- # Switch back to bitcoin user
56
- USER bitcoin
57
-
58
- WORKDIR /home/bitcoin
48
+ libminiupnpc-dev libnatpmp-dev libevent-dev libzmq3-dev libsqlite3-dev
59
49
60
50
COPY --from=builder /bitcoin/src/bitcoind /usr/local/bin/
61
51
COPY --from=builder /bitcoin/src/bitcoin-cli /usr/local/bin/
62
52
63
- EXPOSE 18443 18444
64
-
65
- # Prevents `VOLUME $HOME/.bitcoin/` being created as owned by `root`
66
- RUN mkdir -p "$HOME/.bitcoin/"
67
- COPY bitcoin.conf "$HOME/bitcoin.conf"
53
+ COPY bitcoin.conf /root/.bitcoin/bitcoin.conf
68
54
69
- VOLUME /home /bitcoin/.bitcoin
55
+ VOLUME /root /bitcoin/.bitcoin
70
56
71
- ENTRYPOINT ["bitcoind" , "-printtoconsole" ]
57
+ CMD ["bitcoind" , "-printtoconsole" ]
You can’t perform that action at this time.
0 commit comments