From fa60de79fd8b03e7c46f9afa7da3added1b7902f Mon Sep 17 00:00:00 2001 From: Aaron BenDaniel <144371000+AaronBenDaniel@users.noreply.github.com> Date: Tue, 28 Oct 2025 13:28:56 -0400 Subject: [PATCH 1/5] Update README.md copyright year The future is now. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c86fea9..e0c5cec 100644 --- a/README.md +++ b/README.md @@ -53,5 +53,5 @@ My thanks to [aerkalov/ebooklib](https://github.com/aerkalov/ebooklib) for a fas ---
-

TheOnlyWayUp © 2024

+

TheOnlyWayUp © 2025

From 6c1a1455777046909398180759ad99cac206ba9a Mon Sep 17 00:00:00 2001 From: Aron BenDaniel <144371000+AaronBenDaniel@users.noreply.github.com> Date: Thu, 30 Oct 2025 17:07:30 -0400 Subject: [PATCH 2/5] docker: Fix .dockerignore uv.lock entry --- .dockerignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 4d111d3..c082002 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,4 +7,4 @@ build .env *log *.md -uv.lock +src/api/uv.lock From 83466ded4dca0cf14d4d656310036ec0496e5400 Mon Sep 17 00:00:00 2001 From: TheOnlyWayUp Date: Mon, 10 Nov 2025 00:05:09 +0530 Subject: [PATCH 3/5] fix(docker): Remove cache files after install --- .dockerignore | 1 + Dockerfile | 15 ++++++--------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.dockerignore b/.dockerignore index c082002..78fa266 100644 --- a/.dockerignore +++ b/.dockerignore @@ -8,3 +8,4 @@ build *log *.md src/api/uv.lock +__pycache__ diff --git a/Dockerfile b/Dockerfile index 776db64..19dabf9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20 +FROM node:20-alpine WORKDIR /build COPY src/frontend/package*.json . @@ -13,15 +13,12 @@ FROM python:3.13-slim WORKDIR /app -COPY --from=nobodyxu/apt-fast:latest-debian-buster-slim /usr/local/ /usr/local/ - -RUN apt update -RUN apt install -y aria2 -RUN apt-fast install -y git build-essential python3.13-dev libgobject-2.0 libpango-1.0 libpangoft2-1.0 +RUN apt update && \ + apt install -y git build-essential python3.13-dev libgobject-2.0 libpango-1.0 libpangoft2-1.0 && \ + apt clean && \ + rm -rf /var/lib/apt/lists/* # aiohttp-client-cache depends on multipart, which requires python3.13-dev to build successfully on 3.13 # weasyprint depends on libgoject, libpango, and libpangoft2 - -RUN rm -rf /var/lib/apt/lists/* # https://github.com/TheOnlyWayUp/WattpadDownloader/pull/82#discussion_r2470358950 @@ -32,7 +29,7 @@ WORKDIR /app COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ COPY src/api/pyproject.toml /app -RUN uv sync +RUN uv sync && uv cache clean COPY src/api/ /app COPY --from=0 /build/build /app/src/build From 1379f416bc402c1d4c1ea68a97153c3ad9d61bda Mon Sep 17 00:00:00 2001 From: TheOnlyWayUp Date: Mon, 10 Nov 2025 00:29:09 +0530 Subject: [PATCH 4/5] fix(docker): .dockerignore targets subdirectories --- .dockerignore | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.dockerignore b/.dockerignore index 78fa266..ed5cac8 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,11 +1,11 @@ -__pycache__ -*ipynb -build -.idea -.vscode -.venv -.env -*log -*.md +**/__pycache__/ +**/*.ipynb +**/build/ +.idea/ +.vscode/ +**/.venv/ +**/.env +**/.env_template +**/*.log +**/*.md src/api/uv.lock -__pycache__ From a84d4edb6bd6bad2f2dfa2140976abeae9599aa3 Mon Sep 17 00:00:00 2001 From: TheOnlyWayUp Date: Mon, 10 Nov 2025 00:29:38 +0530 Subject: [PATCH 5/5] fix(docker): Install libraries for weasyprint --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 19dabf9..22f78f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ FROM python:3.13-slim WORKDIR /app RUN apt update && \ - apt install -y git build-essential python3.13-dev libgobject-2.0 libpango-1.0 libpangoft2-1.0 && \ + apt install -y git build-essential python3.13-dev libglib2.0-0 libpango-1.0-0 libpangoft2-1.0-0 && \ apt clean && \ rm -rf /var/lib/apt/lists/* # aiohttp-client-cache depends on multipart, which requires python3.13-dev to build successfully on 3.13