Web-accessible official Mozilla Firefox on Debian 13 (TigerVNC + noVNC + HTTPS), 0 fixable CVEs.
2.8K
A lean, hardened Mozilla Firefox web desktop container on Debian 13 (trixie-slim) backed by official Mozilla APT packages, TigerVNC, noVNC, Openbox, and an HTTPS NGINX front end, maintained by Daniel G. Cosenza from FNX Labs.
dgcosenza/firefoxghcr.io/dgcosenza/firefox (identical signed multi-arch digest)dgcosenza/firefox-dockerpackages.mozilla.org, MPL-2.0)LICENSE and THIRD-PARTY-NOTICES.md)dgcosenza/firefox runs the latest official Mozilla Firefox release (verified against Mozilla's APT GPG signing key) inside a minimal Debian 13 (trixie-slim) web desktop:
/config profile compatibility: Preserves HOME=/config, /config/.mozilla, /config/Desktop, /config/Downloads, /config/ssl/cert.{pem,key}, PUID/PGID (user abc), CUSTOM_USER/PASSWORD HTTP Basic Auth, CHROME_CLI, TITLE, /dev/dri Mesa VAAPI/GL support, HTTP :3000, and HTTPS :3001.tini as PID 1, drops desktop/browser processes (Xtigervnc, openbox, firefox, websockify, NGINX workers) to non-root abc via setpriv (fully compatible with security_opt: no-new-privileges:true), binds VNC strictly to 127.0.0.1:5900, and gates every build on 0 fixable findings of any severity in both Trivy and Grype.| Component | Resolved Version |
|---|---|
| Mozilla Firefox | 161.0 |
| Web Desktop | TigerVNC + noVNC + Openbox |
| Base OS | Debian 13.8 (trixie-slim) |
| Architectures | linux/amd64, linux/arm64 |
| Uncompressed size (per arch) | amd64: 369.9 MB, arm64: 997.4 MB |
| Last verified build (UTC) | 2026-11-28 |
| Published multi-arch digest | dgcosenza/firefox@sha256:dae2ea5b34cbc347aece4417b4969b47febc9a94ba899ad63c4191a0c057b7f9 |
| GHCR mirror | ghcr.io/dgcosenza/firefox@sha256:dae2ea5b34cbc347aece4417b4969b47febc9a94ba899ad63c4191a0c057b7f9 |
| 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 (46 upstream-unfixed) |
| Tag | Policy | Description |
|---|---|---|
<version>-<YYYYMMDD> (e.g. 161.0-20261124) | Immutable | Date-stamped daily rebuild pinning the Firefox release and UTC build date. |
sha-<short> | Immutable | Packaging repository Git commit tag. |
<version> (e.g. 161.0) | Moving | Latest verified Debian 13 rebuild of that Firefox release. |
latest | Moving | Latest verified build tracking the newest official Mozilla Firefox release. |
Production pinning: Pin by registry digest:
image: dgcosenza/firefox:latest@sha256:<digest>
| Architecture | Status | Verification |
|---|---|---|
linux/amd64 | Published & natively tested | Built, smoke-tested, Dive-gated, Syft/Trivy/Grype-scanned, and Cosign-signed on native x86_64 CI runners. |
linux/arm64 | Published & natively tested | Built, smoke-tested, Dive-gated, Syft/Trivy/Grype-scanned, and Cosign-signed on native ARM64 CI runners. |
ghcr.io/dgcosenza/*), accompanied by automated signed GitHub Releases.docker rundocker run -d \
--name firefox \
--restart unless-stopped \
--security-opt no-new-privileges:true \
--security-opt seccomp:unconfined \
--shm-size 1g \
-p 192.0.2.10:3001:3001 \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Etc/UTC \
-e CUSTOM_USER=browser \
-e PASSWORD="replace-with-a-strong-password" \
-e CHROME_CLI="https://start.duckduckgo.com/" \
-v "$(pwd)/config:/config" \
dgcosenza/firefox:latest
See docker-compose.example.yml.
| Variable | Required | Default | Description |
|---|---|---|---|
PUID | No | 1000 | UID assigned to the non-root abc desktop user. |
PGID | No | 1000 | GID assigned to the non-root abc desktop group. |
TZ | No | Etc/UTC | Container timezone (IANA timezone name). |
CUSTOM_USER | No | abc | HTTP Basic Auth username when PASSWORD is set. |
PASSWORD | Recommended | (unset) | Enables HTTP Basic Auth (bcrypt) on ports 3000 and 3001 when non-empty. |
TITLE | No | Firefox | HTML page title for the noVNC web client. |
CHROME_CLI | No | (unset) | Optional URL or CLI arguments passed to firefox --no-remote. |
SCREEN_WIDTH / SCREEN_HEIGHT / SCREEN_DEPTH | No | 1440 / 900 / 24 | Initial virtual display geometry (noVNC dynamically resizes to fit the browser viewport). |
MOZ_USE_XINPUT2 | No | 1 | Enables XInput2 smooth scrolling and touch input in Firefox. |
MOZ_WEBRENDER_DISABLED | No | (unset) | Set to 1 to force software rendering if GPU compositing is undesirable. |
| Path / Port | Mode / Owner | Purpose |
|---|---|---|
/config | PUID:PGID (abc) | Persistent HOME: .mozilla/ profile, Downloads/, Desktop/, .config/openbox/, ssl/cert.{pem,key}. |
/dev/dri (optional) | Host GPU nodes | Optional bind mount for Mesa DRI/VAAPI acceleration (add host video and render GIDs via group_add). |
3000/tcp | HTTP | noVNC web interface (prefer reverse proxy or 3001/tcp). |
3001/tcp | HTTPS | TLS-encrypted noVNC web interface (probed by the built-in healthcheck). |
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD ["sh", "-c", "curl -sk -o /dev/null -w '%{http_code}' --max-time 5 https://127.0.0.1:3001/ | grep -qE '^(200|301|302|401)$'"]
Verifies the local HTTPS reverse proxy on port 3001 responds with HTTP 200, 301, 302, or 401 (when Basic Auth is enabled).
lscr.io/linuxserver/firefox./config (especially ./config/.mozilla) and tag the outgoing image for rollback../config:/config, /dev/dri:/dev/dri, shm_size: "1g", PUID/PGID, CUSTOM_USER, PASSWORD, and CHROME_CLI settings../config on non-conflicting loopback ports, verify Basic Auth and profile bookmarks/extensions load cleanly, then pin image: dgcosenza/firefox:latest@sha256:<digest> and recreate the container.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/firefox-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/firefox:latest
# Or against Docker Hub (identical digest):
cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/firefox-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
dgcosenza/firefox:latest
cosign verify-attestation \
--type spdxjson \
--certificate-identity-regexp="^https://github\.com/dgcosenza/firefox-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/firefox@sha256:<arch-digest>
gh attestation verify oci://ghcr.io/dgcosenza/firefox:latest --owner dgcosenza
--ignore-unfixed gate) and Grype (--only-fixed, severity cutoff negligible, blocking gate), plus emits an SPDX SBOM (sbom.spdx.json) and provenance artifact.Xtigervnc listens strictly on 127.0.0.1:5900 (never exposed directly); external clients connect over TLS on :3001 behind bcrypt HTTP Basic Auth. Desktop processes run as non-root abc via setpriv without requiring sudo or disabling no-new-privileges:true.SECURITY.md.git clone https://github.com/dgcosenza/firefox-docker.git
cd firefox-docker
docker buildx build \
--platform linux/amd64 \
--load \
--build-arg BUILD_DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--build-arg IMAGE_REVISION="$(git rev-parse HEAD)" \
-t dgcosenza/firefox:local \
.
| Build Arg | Default | Purpose |
|---|---|---|
FIREFOX_VERSION | 161.0~build1 | Official Mozilla Debian APT package version (resolved daily by CI). |
DEBIAN_BASE | debian:trixie-slim | Base OS image. |
BUILD_DATE | unknown | RFC 3339 UTC build timestamp. |
IMAGE_REVISION | "" | Packaging repository Git SHA. |
IMAGE_SOURCE | https://github.com/dgcosenza/firefox-docker | Source URL for OCI labels. |
.github/workflows/daily.yml runs automatically every day at 04:39 UTC, on pushes to main, on pull requests (verification only), and via workflow_dispatch. Every scheduled run executes a seven-step automated pipeline (gated by .github/workflows/public-check.yml):
packages.mozilla.org) for the latest stable Firefox package and resolves the debian:trixie-slim digest, diffs against versions.json, and emits upstream-changes.md.linux/amd64 with --no-cache on schedule, upgrades all Debian 13 packages (apt-get update && apt-get -y upgrade), verifies Mozilla's APT GPG fingerprint, installs latest Firefox, and generates an SPDX SBOM (sbom.spdx.json) and provenance artifact.--ignore-unfixed gate) and Grype (blocking --only-fixed gate, severity cutoff negligible), diffs findings against the previous scan, and retains reports for 90 days.tests/smoke.sh to verify Firefox version, tini PID 1, non-root abc desktop processes, Basic Auth enforcement on :3001 (401 unauthenticated, 200 authenticated), and a negative closed-port healthcheck test.latest, <version>, <version>-<YYYYMMDD>, and sha-<short> tags to Docker Hub and records the immutable digest.versions.json, the README Current Versions block, and a dated CHANGELOG.md entry via github-actions[bot] with [skip ci] when content changes, then syncs the Docker Hub overview via peter-evans/dockerhub-description.ci-failure with the failing job and run link, and auto-closes it on the next green run.trixie-slim): Ships current mainstream Mozilla Firefox releases (not Debian ESR) signed with Mozilla's official key while keeping the base OS tracked by Debian 13 Security.setpriv instead of sudo: Drops desktop processes to UID/GID PUID:PGID while staying 100% compatible with security_opt: no-new-privileges:true.This repository follows a clear packaging-vs-upstream license split:
packaging: MIT): Licensed under the MIT License — copyright Daniel G. Cosenza from FNX Labs.packages.mozilla.org) (upstream: MPL-2.0): Mozilla Firefox is distributed by the Mozilla Foundation under the Mozilla Public License 2.0 (MPL-2.0).Full third-party notices are maintained in THIRD-PARTY-NOTICES.md. Release history is maintained in CHANGELOG.md.
Content type
Image
Digest
sha256:dae2ea5b3…
Size
352.7 MB
Last updated
about 13 hours ago
docker pull dgcosenza/firefox