mirror of
https://github.com/TeamNewPipe/CrashReportImporter
synced 2025-01-21 20:04:06 +00:00
26 lines
727 B
Docker
26 lines
727 B
Docker
FROM python:3.13
|
|
|
|
LABEL org.opencontainers.image.source=https://github.com/TeamNewPipe/CrashReportImporter
|
|
|
|
# we want to run the server with an unprivileged user
|
|
RUN adduser --system --group web
|
|
|
|
# set up mount for directory storage
|
|
RUN install -o web -d /app/mails
|
|
VOLUME /app/mails
|
|
|
|
WORKDIR /app/
|
|
|
|
# LMTP server port
|
|
EXPOSE 8025
|
|
|
|
# when not using poetry to install the dependencies, we need to make the sources available for this step already
|
|
COPY pyproject.toml poetry.lock /app/
|
|
COPY newpipe_crash_report_importer/ /app/newpipe_crash_report_importer/
|
|
RUN pip install -U -e .
|
|
|
|
USER web
|
|
|
|
# finally, configure the server command
|
|
CMD python -m newpipe_crash_report_importer --force-colors=true serve --host 0.0.0.0 --port 8025
|