1
0
mirror of https://github.com/TeamNewPipe/CrashReportImporter synced 2025-10-06 00:22:39 +02:00
Files
CrashReportImporter/Dockerfile

26 lines
727 B
Docker
Raw Normal View History

2024-12-25 00:45:13 +01:00
FROM python:3.13
2021-01-29 18:27:29 +01:00
LABEL org.opencontainers.image.source=https://github.com/TeamNewPipe/CrashReportImporter
2021-01-29 18:27:29 +01:00
# we want to run the server with an unprivileged user
2024-12-25 00:45:38 +01:00
RUN adduser --system --group web
2021-01-29 18:27:29 +01:00
# set up mount for directory storage
RUN install -o web -d /app/mails
VOLUME /app/mails
WORKDIR /app/
# LMTP server port
2021-01-29 18:27:29 +01:00
EXPOSE 8025
# when not using poetry to install the dependencies, we need to make the sources available for this step already
2021-01-29 18:27:29 +01:00
COPY pyproject.toml poetry.lock /app/
COPY newpipe_crash_report_importer/ /app/newpipe_crash_report_importer/
RUN pip install -U -e .
USER web
2021-01-29 18:27:29 +01:00
# finally, configure the server command
CMD python -m newpipe_crash_report_importer --force-colors=true serve --host 0.0.0.0 --port 8025