From dc9343876f7dc0f360203332243259d08286fa57 Mon Sep 17 00:00:00 2001 From: Thom Date: Sun, 29 Mar 2026 15:53:18 +0200 Subject: [PATCH] Add comics container (jodal/comics) Web comics aggregator by Stein Magnus Jodal. Python/Django app, builds from source using uv. Runs migrations on startup, serves via gunicorn on port 8000. Ref: https://github.com/jodal/comics --- comics/Dockerfile | 73 ++++++++++++++++++++++++++++++++++++++++++++ comics/entrypoint.sh | 22 +++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 comics/Dockerfile create mode 100644 comics/entrypoint.sh diff --git a/comics/Dockerfile b/comics/Dockerfile new file mode 100644 index 0000000..3e4fb90 --- /dev/null +++ b/comics/Dockerfile @@ -0,0 +1,73 @@ +FROM python:3.12-slim-bookworm AS build +SHELL ["sh", "-exc"] + +ARG COMICS_VERSION=main + +# Install build dependencies +RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/* + +# Install uv +COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv + +ENV UV_COMPILE_BYTECODE=1 \ + UV_LINK_MODE=copy \ + UV_PROJECT_ENVIRONMENT=/app \ + UV_PYTHON=/usr/local/bin/python \ + UV_PYTHON_DOWNLOADS=never + +# Clone comics source +RUN git clone --depth 1 --branch "${COMICS_VERSION}" https://github.com/jodal/comics.git /src + +# Install dependencies +RUN --mount=type=cache,target=/root/.cache <