cdnV2

git clone https://github.com/notamitgamer/cdnV2.git
· rebuilt hourlyOpen on GitHub
commit 62ea0bb343510a8c5cd635bb27c7fb1f98fe3b76
parent 4831894ad9db36fd3761cb388465c14cf48bb5e2
Author: Claude <noreply@anthropic.com>
Date:   Sun, 20 Sep 2026 02:02:08 +0000

fix: Dockerfile was building from a Node.js base image for a pure-Python app

FROM node:24-bookworm-slim, with Python installed on top via apt-get.
Nothing in this app uses Node - no package.json, no build step; the
only 'npm' reference anywhere is a client-side <script> tag loading a
library from jsDelivr in the browser template, unrelated to the
server. On a 512MB/0.1CPU host this was pure dead weight: extra image
size (slower cold starts) and baseline overhead for a runtime that
never runs.

Switched to python:3.12-slim-bookworm directly - it already ships
pip, so the separate apt-get install of python3/python3-pip is gone
too. No functional change; uvicorn already runs with its default
single worker (no --workers N was set), so that part was already
correctly sized for this host.

Diffstat:
MDockerfile | 10+---------
1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -1,20 +1,12 @@ -FROM node:24-bookworm-slim +FROM python:3.12-slim-bookworm WORKDIR /app -# Install Python and required system packages -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - python3 \ - python3-pip \ - && rm -rf /var/lib/apt/lists/* - # Install FastAPI dependencies COPY requirements.txt . RUN pip3 install \ --no-cache-dir \ - --break-system-packages \ -r requirements.txt # Copy FastAPI application