2022-10-10 16:50:55 +00:00
|
|
|
FROM lightninglabs/lnd:v0.15.2-beta
|
2022-02-09 15:21:51 +00:00
|
|
|
|
|
|
|
ARG LOCAL_USER_ID=9999
|
|
|
|
ARG LOCAL_GROUP_ID=9999
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
RUN adduser --disabled-password lnd
|
|
|
|
# Set the expected local user id
|
|
|
|
# for shared group to access tor cookie
|
|
|
|
RUN apk --no-cache --no-progress add shadow=~4 sudo=~1 gettext=~0.21 && \
|
|
|
|
usermod -u "$LOCAL_USER_ID" lnd && \
|
|
|
|
groupmod -g "$LOCAL_GROUP_ID" lnd
|
|
|
|
|
|
|
|
USER root
|
|
|
|
COPY entrypoint.sh /root/entrypoint.sh
|
|
|
|
COPY lnd.conf /tmp/lnd.conf
|
2022-03-15 18:20:57 +00:00
|
|
|
|
2022-02-09 15:21:51 +00:00
|
|
|
ENTRYPOINT [ "/root/entrypoint.sh" ]
|