Hardened Debian 13 (trixie) + Node LTS Flame startpage image (non-root, 0 fixable CVEs).
4.9K
A hardened, actively maintained container image for Flame (self-hosted startpage and dashboard), built on Debian 13 (trixie) and the latest active Node.js LTS runtime, maintained by Daniel G. Cosenza from FNX Labs.
dgcosenza/flameghcr.io/dgcosenza/flame (identical signed multi-arch digest)dgcosenza/flame-dockerAlexStapleton/Flame-Revamped v2.1.0 (fork of pawelmalak/flame)dgcosenza/flame, maintained by Daniel G. Cosenza from FNX Labs, replaces the legacy pawelmalak/flame (v2.4.0 / EOL Node 20) image with a drop-in, hardened build on Debian 13 (trixie-slim) + Node.js 26 LTS:
AlexStapleton/Flame-Revamped (v2.1.0, commit 0d6221d8), modernizing Flame to Express 5, Sequelize 6, sqlite3 6 (bundled SQLite 3.52), React 19, Vite 8, and TypeScript 7 with 250+ automated tests and XSS/CSP/auth hardening while preserving the classic Flame layout and SQLite data model.node:<LTS>-trixie-slim (latest Debian 13 point release, 13.8 as of 2026-11-24), upgraded via apt-get update && apt-get -y upgrade at build time, with native sqlite3 compiled from source against Debian 13 glibc and Node 26.npm audit --audit-level=low must report 0 vulnerabilities on client and server, and Trivy must report 0 fixable vulnerabilities of any severity before publication.patches/):
01-secrets-and-startup.patch — Loads /run/secrets/* and PASSWORD_FILE / SECRET_FILE before secret initialization and password validation, supporting secret-only deployments without plaintext PASSWORD env vars.02-dot-secret-compat.patch — Preserves pawelmalak/flame's data/.secret (with fallback to Flame-Revamped's data/secret.key) and writes newly generated secret files with mode 0600.03-mass-assignment-allowlists.patch — Enforces explicit field allowlists in app, bookmark, and category create/update controllers (mitigating CWE-915).| Component | Resolved Version |
|---|---|
| Flame-Revamped | 2.1.0 (0d6221d8) |
| Node.js LTS | 26.13.1 |
| Base OS | Debian 13.8 (trixie-slim) |
| Architectures | linux/amd64, linux/arm64 |
| Uncompressed size (per arch) | amd64: 114.2 MB, arm64: 411.6 MB |
| Last verified build (UTC) | 2026-11-28 |
| Published multi-arch digest | dgcosenza/flame@sha256:7f6ff2e3b4621c7f258af0487bc28280d018b5d0a2a8382f4733285811004e5e |
| GHCR mirror | ghcr.io/dgcosenza/flame@sha256:7f6ff2e3b4621c7f258af0487bc28280d018b5d0a2a8382f4733285811004e5e |
| Supply chain | Cosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance |
| Security gate (Trivy + Grype on SBOM) | 0 fixable findings of any severity (13 upstream-unfixed) |
| Tag | Policy | Description |
|---|---|---|
<version>-<commit>-<YYYYMMDD> (e.g. 2.1.0-0d6221d8-20261124) | Immutable | Point-in-time build pinning the upstream release, commit, and build date. |
<version>-<YYYYMMDD> (e.g. 2.1.0-20261124) | Immutable | Date-stamped daily security rebuild. |
sha-<short> | Immutable | Packaging repository commit tag. |
<version>-<commit> (e.g. 2.1.0-0d6221d8) | Moving (same commit) | Latest verified Debian 13 / Node LTS security rebuild of that commit. |
<version> (e.g. 2.1.0) | Moving (patch line) | Latest verified build in the 2.1.0 line. |
latest | Moving | Latest verified Debian 13 / Node LTS build passing all audit, test, Trivy, and Grype gates. |
Production pinning: Pin by registry digest rather than pulling unpinned :latest:
image: dgcosenza/flame:latest@sha256:<digest>
| Architecture | Status | Verification |
|---|---|---|
linux/amd64 | Published & natively tested | Native x86_64 build, smoke, Dive, Trivy/Grype, Cosign, SLSA L3. |
linux/arm64 | Published & natively tested | Native ARM64 build, smoke, Dive, Trivy/Grype, Cosign, SLSA L3. |
Identical multi-arch OCI manifest digests are published to Docker Hub and GHCR (ghcr.io/dgcosenza/*), accompanied by automated signed GitHub Releases.
The container runs as non-root node (UID/GID 1000:1000). Prepare host directories and a secret password file first:
mkdir -p ./data ./secrets
chown -R 1000:1000 ./data
printf '%s\n' 'replace-with-a-strong-unique-password' > ./secrets/password
chmod 600 ./secrets/password
docker run -d --name flame --restart unless-stopped --security-opt no-new-privileges:true \
-p 192.0.2.10:5005:5005 -e PASSWORD_FILE=/run/secrets/password \
-v "$(pwd)/data:/app/data" -v "$(pwd)/secrets/password:/run/secrets/password:ro" \
--cpus 1.00 --memory 256m dgcosenza/flame:latest
Open http://192.0.2.10:5005/, click the gear icon -> App, and sign in with ./secrets/password.
See also docker-compose.example.yml:
services:
flame:
# Pin by @sha256 digest in production:
image: dgcosenza/flame:latest
container_name: flame
restart: unless-stopped
security_opt:
- no-new-privileges:true
ports:
# LAN-only bind: replace with your host's private LAN IP
- "192.0.2.10:5005:5005"
environment:
- NODE_ENV=production
- PASSWORD_FILE=/run/secrets/password
# - TRUST_PROXY=1 # Set hop count only behind a reverse proxy
# - CSP=on # Set "off" only if custom CSS/assets break under CSP
# - NODE_USE_ENV_PROXY=1 # Honour HTTP_PROXY / HTTPS_PROXY for outbound widget calls
secrets:
- password
volumes:
- ./data:/app/data
# - ./log:/app/log # Optional persistent access.log (e.g. fail2ban)
healthcheck:
test: ["CMD", "node", "/app/healthcheck.js"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
deploy:
resources:
limits:
cpus: "1.00"
memory: 256M
secrets:
password:
file: ./secrets/password
At startup, /run/secrets/* files are loaded into uppercase environment variables first, followed by explicit *_FILE variables (PASSWORD_FILE, SECRET_FILE).
| Variable | Required | Default | Description |
|---|---|---|---|
PASSWORD | Yes* | (none) | Admin password. Flame refuses to start if unset via env, PASSWORD_FILE, or /run/secrets/password. Changing it invalidates all active sessions. |
PASSWORD_FILE | Yes* | (unset) | Path to a file containing the admin password (trimmed). Preferred over plaintext PASSWORD (e.g. /run/secrets/password). |
SECRET | No | Auto-generated | HS256 JWT signing key. When unset (or CHANGE_ME), Flame loads data/.secret (or data/secret.key), or generates a 64-byte random hex key in data/.secret (0600). |
SECRET_FILE | No | (unset) | Path to a file containing the JWT signing key. |
PORT | No | 5005 | Internal HTTP/WebSocket listening port (also read by /app/healthcheck.js). |
NODE_ENV | No | production | Node runtime mode (production in image; development for local debugging only). |
TRUST_PROXY | No | false | Trusted reverse-proxy hop count (e.g. 1 behind nginx/Traefik) so rate limiting and access.log see real client IPs. |
CSP | No | on | Set to off to disable the Content-Security-Policy header (logs a startup warning). |
NODE_USE_ENV_PROXY | No | (unset) | Set to 1 to route outbound Weather/Pi-hole/Calendar requests via HTTP_PROXY / HTTPS_PROXY. |
/run/secrets/<name> | No | (none) | Each mounted secret sets uppercase <NAME> (e.g. /run/secrets/password overrides PASSWORD). |
*At least one of PASSWORD, PASSWORD_FILE, or /run/secrets/password is required.
Flame listens on 5005/tcp (UI, /api/*, /health, /socket). Bind to a private LAN interface (e.g. 192.0.2.10:5005:5005, RFC 5737 example) or 127.0.0.1:5005:5005 behind a reverse proxy; avoid unfirewalled 5005:5005.
/app/data (required persistent volume)| Path | Back up? | Mode / Owner | Purpose |
|---|---|---|---|
db.sqlite (+ -wal, -shm) | Yes | 1000:1000 | SQLite database (WAL mode): apps, categories, bookmarks, weather cache, SequelizeMeta. |
config.json | Yes | 1000:1000 | UI and integration settings (title, theme, ordering, layout columns, Weather/Pi-hole/Calendar settings and API keys). |
themes.json | Yes | 1000:1000 | Built-in and custom color themes. |
customQueries.json | Yes | 1000:1000 | Custom search bar providers and prefixes. |
.secret (or secret.key) | Yes (sensitive) | 0600 1000:1000 | Persistent HS256 JWT signing key. Never commit or print. |
flame.css | Yes | 1000:1000 | Custom CSS (copied to /app/public/flame.css at startup and on save). |
uploads/ | Yes | 1000:1000 | Uploaded custom icons (PNG, JPEG, ICO, SVG — served with nosniff + sandbox CSP). |
db_backups/ | Optional | 1000:1000 | Automatic pre-migration copies of db.sqlite. |
/app/log (optional)Stores Apache-combined HTTP access logs (/app/log/access.log, excluding /health). Mount a host folder if you need persistent logs or fail2ban.
Because the container runs as non-root node (UID/GID 1000) without root chown at startup, ensure host ownership matches:
chown -R 1000:1000 /path/to/flame/data
chmod 600 /path/to/flame/data/.secret
Manage apps, categories, bookmarks, themes, search providers, and widgets in Settings (bottom-left gear icon). Public items are guest-visible; private items, write endpoints, and integration secrets (WEATHER_API_KEY, PIHOLE_SECRETS, CALENDAR_SECRETS) require admin login.
pawelmalak/flameThis image is a data-compatible upgrade from pawelmalak/flame (v2.3.x / v2.4.0). It reuses data/.secret, preserves config.json, and applies four additive, reversible SQLite migrations (06_indexes.js to 09_weather-details.js) after saving an automatic backup in data/db_backups/.
Key points (full step-by-step cutover, verification and rollback in docs/MIGRATION.md):
data/ and tag the outgoing image before switching../data is owned by UID 1000.healthcheck.test with ["CMD", "node", "/app/healthcheck.js"].flame service.pwf claim).Stop flame briefly before archiving /app/data (SQLite WAL mode) with tar --numeric-owner. GUI backups exclude secrets; use filesystem backups for full recovery (docs/BACKUP-RESTORE.md).
Every published digest (multi-arch index and per-architecture manifests) on both Docker Hub and GHCR is keyless-signed with Sigstore Cosign (GitHub OIDC), attested with SPDX and CycloneDX SBOMs, and backed by SLSA Build L3 provenance (actions/attest-build-provenance).
cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/flame-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/flame:latest
# Identical digest on Docker Hub: replace ghcr.io/dgcosenza/flame:latest with dgcosenza/flame:latest
cosign verify-attestation \
--type spdxjson \
--certificate-identity-regexp="^https://github\.com/dgcosenza/flame-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/flame@sha256:<arch-digest>
gh attestation verify oci://ghcr.io/dgcosenza/flame:latest --owner dgcosenza
node (UID/GID 1000) with no-new-privileges:true. /app code, node_modules, and static /app/public assets are root:root read-only; only /app/data, /app/log, and /app/public/flame.css are writable by UID 1000.git, npm, npx, corepack, yarn, curl, and wget are excluded from the runtime layer. /app/package-lock.json stays intact for transparent vulnerability scanning./run/secrets/password) + PASSWORD_FILE over plaintext PASSWORD env vars.data/.secret is created mode 0600. Tokens require HS256, clamp TTLs to 1h|1d|14d|30d|1y (default 14d), and embed an HMAC password fingerprint (pwf). Rotating PASSWORD or data/.secret invalidates all active tokens immediately.Content-Security-Policy, nosniff, SAMEORIGIN, sandboxed /uploads, DOMPurify SVG sanitization, blocked javascript:/data: URLs, login rate limiting (10 failed attempts / 15 min), constant-time password verification, 100 KB JSON body cap (10 MB backup import), and explicit write field allowlists.npm audit --audit-level=low finding (>0), any Trivy fixable finding of any severity (--ignore-unfixed), or any Grype fixable finding of any severity (--only-fixed). Current status: 0 fixable vulnerabilities of any severity. Trivy SARIF results are uploaded to GitHub Code Scanning, full Trivy/Grype reports and an SPDX SBOM are persisted as CI artifacts, and any upstream-unfixed Debian 13 advisories are cleared automatically by daily rebuilds once Debian Security publishes fixes. See SECURITY.md.HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD ["node", "/app/healthcheck.js"]
/app/healthcheck.js sends an HTTP GET to http://127.0.0.1:${PORT}/health (5 s timeout) and exits 0 only on HTTP 200 with {"status":"healthy"}. /health validates both data/config.json accessibility and a live SQLite SELECT 1 query (2 s timeout). Three consecutive failures mark the container unhealthy, signalling a process crash, port binding fault, missing config, or unreachable/corrupt SQLite database.
git clone https://github.com/dgcosenza/flame-docker.git
cd flame-docker
docker buildx build --platform linux/amd64 --load -t dgcosenza/flame:local .
Build arguments (NODE_VERSION, FLAME_REPO, FLAME_VERSION, FLAME_COMMIT, IMAGE_*) and the four-stage build are documented in docs/BUILD.md.
.github/workflows/daily.yml runs daily at 04:17 UTC, on main pushes, PRs, and workflow_dispatch: resolves Node LTS + Flame-Revamped, rebuilds --no-cache, enforces npm audit + Trivy + Grype (0 fixable CVEs of any severity) + Dive + tests/smoke.sh, publishes Cosign-signed SLSA L3 digests to Docker Hub, GHCR, and configured secondary registries, syncs versions.json/README.md/CHANGELOG.md/Hub overview, and manages a single ci-failure issue (docs/UPDATE-POLICY.md). Pin deployments by @sha256 digest.
trixie-slim) + Node LTS: Clean native sqlite3 glibc builds tracking Debian Security advisories.http module eliminates curl/wget from runtime.git, npm, corepack, and yarn while keeping package-lock.json for transparent scanning.FATAL: PASSWORD environment variable is not set: supply PASSWORD, PASSWORD_FILE=/run/secrets/password, or a readable /run/secrets/password.EACCES in /app/data: chown -R 1000:1000 ./data && chmod 600 ./data/.secret.unhealthy after migrating: use ["CMD", "node", "/app/healthcheck.js"] as healthcheck.test.More cases (logout after upgrade, CSP, rate limiter behind a proxy, WAL backups): docs/TROUBLESHOOTING.md.
This repository follows a clear packaging-vs-upstream license split:
packaging: MIT): Licensed under the MIT License — copyright Daniel G. Cosenza from FNX Labs.AlexStapleton/Flame-Revamped, fork of pawelmalak/flame) (upstream: MIT): Created by Paweł Malak and maintained by Alex Stapleton — licensed under the MIT License.Full third-party notices are maintained in THIRD-PARTY-NOTICES.md. Release history is maintained in CHANGELOG.md.
Content type
Image
Digest
sha256:7f6ff2e3b…
Size
108.9 MB
Last updated
about 13 hours ago
docker pull dgcosenza/flame