From 8b6742f4842ee19adcf175af4da34656baf4d203 Mon Sep 17 00:00:00 2001 From: k2patel <1+k2patel@git.k2patel.in> Date: Wed, 30 Sep 2026 21:18:06 -0400 Subject: [PATCH] Match upstream Flood runtime while keeping torrent service separate --- Dockerfile.client | 6 +++--- README.md | 8 ++++++-- tests/startup.cjs | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Dockerfile.client b/Dockerfile.client index a879e4b..8433cd6 100644 --- a/Dockerfile.client +++ b/Dockerfile.client @@ -2,7 +2,7 @@ # Build from a clean upstream release checkout using the Gitea workflow. ARG BUILDPLATFORM=amd64 -ARG NODE_IMAGE=docker.io/node:24-alpine3.24 +ARG NODE_IMAGE=docker.io/node:24.18.1-alpine3.24 FROM --platform=$BUILDPLATFORM ${NODE_IMAGE} as nodebuild @@ -51,5 +51,5 @@ VOLUME /server/db/ # Fail the build before publication if the actual server cannot start. RUN node .ci-startup.cjs && rm .ci-startup.cjs -# Flood server in development mode -ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start:development:server", "--", "--host=0.0.0.0", "--rundir=/server/"] +# Start Flood only, using the upstream v4.16.2 production entrypoint. +ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start", "--", "--host=0.0.0.0", "--rundir=/server/"] diff --git a/README.md b/README.md index e61b475..5adb43f 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,12 @@ runner image store, and the temporary builder and cache are removed afterward. No image archives or build records are uploaded to Gitea, and no local container builds are required. -Base image: Node.js 24 on Alpine Linux 3.24 stable (`node:24-alpine3.24`), -including the latest patch updates in those release series. +Base image: Node.js 24.18.1 on Alpine Linux 3.24 stable (`node:24.18.1-alpine3.24`), +with the Alpine stable series explicitly selected. The image build starts the actual Flood server and requires HTTP 200 before publishing; it does not start a torrent daemon. + +The entrypoint uses `npm run start`, matching upstream v4.16.2, while retaining +`--host=0.0.0.0` and `--rundir=/server/`. The upstream combined rTorrent stage +is deliberately excluded. diff --git a/tests/startup.cjs b/tests/startup.cjs index 1c5ba12..1916001 100644 --- a/tests/startup.cjs +++ b/tests/startup.cjs @@ -4,7 +4,7 @@ const fs = require('node:fs'); const os = require('node:os'); const path = require('node:path'); const runDir = fs.mkdtempSync(path.join(os.tmpdir(), 'flood-smoke-')); -const child = spawn('npm', ['run', 'start:development:server', '--', +const child = spawn('npm', ['run', 'start', '--', '--host=127.0.0.1', '--port=3000', `--rundir=${runDir}`], {stdio: 'inherit', detached: true}); let startupError;