merged ln metadata into manga mover
This commit is contained in:
+19
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user