Skip to content

Commit bad8051

Browse files
committed
bitcoin 27.0
1 parent 1bb6bc3 commit bad8051

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

27.0/Dockerfile

+4-18
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,15 @@ FROM debian:stable-slim
4343

4444
ENV DEBIAN_FRONTEND=non-interactive
4545

46-
RUN useradd -ms /bin/bash bitcoin
47-
48-
# Switch to root user
49-
USER root
50-
5146
# Only install what we need at runtime
5247
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
5949

6050
COPY --from=builder /bitcoin/src/bitcoind /usr/local/bin/
6151
COPY --from=builder /bitcoin/src/bitcoin-cli /usr/local/bin/
6252

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
6854

69-
VOLUME /home/bitcoin/.bitcoin
55+
VOLUME /root/bitcoin/.bitcoin
7056

71-
ENTRYPOINT ["bitcoind", "-printtoconsole"]
57+
CMD ["bitcoind", "-printtoconsole"]

0 commit comments

Comments
 (0)