merged ln metadata into manga mover
Build and Deploy / build (push) Successful in 59s
Build and Deploy / deploy (push) Successful in 24s

This commit is contained in:
2026-06-14 10:47:47 +02:00
parent 8a44b85a48
commit 216771f709
27 changed files with 3040 additions and 280 deletions
+19 -7
View File
@@ -1,8 +1,18 @@
# One Dockerfile, two images: the build arg APP selects the entry point.
#
# docker build --build-arg APP=manga -t .../manga-mover-and-metadata-collector .
# docker build --build-arg APP=ln -t .../kavita-lightnovel-metadata-fetcher .
#
# Both variants share src/; the variant-specific code lives in
# src/manga/ resp. src/ln/ and is selected by the entry point.
FROM python:3.12-slim
ARG APP=manga
WORKDIR /app
# System deps for Pillow (image dimensions); kept minimal.
# System deps for Pillow (image dimensions, manga variant); kept minimal.
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libjpeg62-turbo \
@@ -11,15 +21,17 @@ RUN apt-get update \
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY src/ /app/src/
COPY main.py /app/main.py
COPY src/ /app/src/
COPY main_manga.py main_ln.py /app/
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
PYTHONDONTWRITEBYTECODE=1 \
APP_VARIANT=${APP}
# Mount points used by main.py defaults
VOLUME ["/mnt/suwayomi", "/mnt/kavita", "/config"]
# /config is used by both variants; the manga variant additionally mounts
# /mnt/suwayomi and /mnt/kavita (see docker-compose.prod.yml).
VOLUME ["/config"]
EXPOSE 8080
CMD ["python", "/app/main.py"]
CMD python /app/main_${APP_VARIANT}.py