Skip to content

Commit

Permalink
fix Tor hidden service creation and bitcoin datadir owner
Browse files Browse the repository at this point in the history
  • Loading branch information
1ma committed Apr 2, 2024
1 parent 4dfee66 commit a3fc06e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@ FROM alpine:3.19 AS final

COPY --from=builder /usr/local/bin/* /usr/local/bin/

RUN adduser -D bitcoin
RUN apk add --no-cache \
tor \
&& adduser -D bitcoin \
&& mkdir /home/bitcoin/.bitcoin \
&& chown bitcoin:bitcoin /home/bitcoin/.bitcoin

USER bitcoin

RUN mkdir /home/bitcoin/.bitcoin

VOLUME /home/bitcoin/.bitcoin
VOLUME ["/home/bitcoin/.bitcoin"]

# REST interface
EXPOSE 8080
Expand Down

0 comments on commit a3fc06e

Please sign in to comment.