robosats/docker/bitcoind/Dockerfile

16 lines
451 B
Docker
Raw Normal View History

2022-02-08 11:41:03 +00:00
FROM ruimarinho/bitcoin-core:22-alpine
ARG LOCAL_USER_ID=9999
ARG LOCAL_GROUP_ID=9999
# Set the expected local user id
# for shared group to access tor cookie
RUN apk --no-cache --no-progress add shadow=~4 gettext=~0.21 && \
groupadd -g "$LOCAL_GROUP_ID" bitcoin && \
usermod -u "$LOCAL_USER_ID" -g bitcoin bitcoin
COPY entrypoint.sh /root/entrypoint.sh
COPY bitcoin.conf /tmp/bitcoin.conf
ENTRYPOINT [ "/root/entrypoint.sh" ]
CMD ["bitcoind"]