charge-lnd/Dockerfile

28 lines
618 B
Text
Raw Normal View History

2025-09-17 11:31:44 +02:00
FROM python:3.13-slim
2020-07-08 17:45:42 +02:00
ENV GRPC_LOCATION=127.0.0.1:10009
ENV LND_DIR=~/.lnd
ENV CONFIG_LOCATION=/app/charge.config
ARG USER_ID=1000
ARG GROUP_ID=1000
ENV USER_ID=$USER_ID
ENV GROUP_ID=$GROUP_ID
RUN addgroup --gid $GROUP_ID charge
RUN adduser --home /home/charge --uid $USER_ID --gid $GROUP_ID --disabled-login charge
2020-07-08 17:45:42 +02:00
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
RUN chmod +x /usr/local/bin/docker-entrypoint
WORKDIR /home/charge/src
COPY . .
2020-07-08 17:45:42 +02:00
RUN pip install -r requirements.txt .
RUN chown -R charge:charge /home/charge/src
2020-07-08 17:45:42 +02:00
WORKDIR /app
USER charge
2020-07-08 17:45:42 +02:00
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"]