robosats/docker/bitcoind/Dockerfile

16 lines
455 B
Docker
Raw Normal View History

2023-04-03 14:37:28 +00:00
FROM ruimarinho/bitcoin-core:24.0.1-alpine
2022-02-08 11:41:03 +00:00
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"]