Hardened rootless VS Code Server (code-server) on Debian 13, multi-arch, signed, 0 fixable CVEs.
769
code-server) — Hardened Debian 13 (trixie-slim) Browser IDEA hardened, rootless multi-arch Visual Studio Code in the browser image powered by SHA-256-verified official coder/code-server releases on Debian 13 (trixie-slim) — maintained by Daniel G. Cosenza from FNX Labs.
dgcosenza/vscodeghcr.io/dgcosenza/vscode (identical signed multi-arch digest)dgcosenza/vscode-dockerdgcosenza/vscode is a drop-in, zero-fixable-CVE replacement for codercom/code-server. It verifies official coder/code-server release tarballs by exact SHA-256 digest, replaces the bundled Node.js runtime with the latest patched Node 24 LTS binary (matching ABI), remediates vulnerable bundled JavaScript dependencies (katex, undici, zod), removes legacy Go 1.20 fixuid, runs strictly as non-root coder (UID/GID 1000:1000) under tini PID 1 with telemetry and upstream update pings disabled, supports Docker secret files (PASSWORD_FILE / /run/secrets/vscode_password), and probes /healthz (lastHeartbeat JSON).
| Component | Resolved Version |
|---|---|
| code-server | 4.146.0 |
| Base OS | Debian 13.8 (trixie-slim) |
| Architectures | linux/amd64, linux/arm64 |
| Uncompressed size (per arch) | amd64: 350.4 MB, arm64: 979.5 MB |
| Last verified build (UTC) | 2026-11-28 |
| Published multi-arch digest | dgcosenza/vscode@sha256:e7da200e7c4c035e3299ff9f7e7cb2dbd1cee623cc018e2849d7e81324d6d868 |
| GHCR mirror | ghcr.io/dgcosenza/vscode@sha256:e7da200e7c4c035e3299ff9f7e7cb2dbd1cee623cc018e2849d7e81324d6d868 |
| 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 (28 upstream-unfixed) |
| Tag | Policy | Description |
|---|---|---|
latest | Moving | Latest verified multi-arch build passing all CVE, Dive, and smoke gates. |
<version> (e.g. 4.146.0) | Moving | Latest verified build for that code-server release. |
<version>-<YYYYMMDD> | Immutable | Date-stamped daily security rebuild. |
sha-<short> | Immutable | Git commit tag from this repository. |
| Architecture | Status | Verification |
|---|---|---|
linux/amd64 | Published & natively tested | Live /healthz + auth redirect smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3. |
linux/arm64 | Published & natively tested | Live /healthz + auth redirect smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3. |
Volume ownership note:
docker-compose.example.ymldefaults to a named Docker volume so non-root runtime permissions (1000:1000) are initialized automatically; if switching to a host bind mount, pre-create the directory owned by1000:1000(mkdir -p ./data && chown 1000:1000 ./data) beforedocker compose up -d.
mkdir -p ./config ./data ./project ./secrets && chown 1000:1000 ./config ./data ./project
openssl rand -base64 24 > ./secrets/vscode_password.txt
chmod 600 ./secrets/vscode_password.txt
docker run -d --name vscode --restart unless-stopped \
--cap-drop ALL --security-opt no-new-privileges:true \
-p 127.0.0.1:8080:8080 \
-v "$(pwd)/secrets/vscode_password.txt:/run/secrets/vscode_password:ro" \
-v "$(pwd)/config:/home/coder/.config" \
-v "$(pwd)/data:/home/coder/.local/share/code-server" \
-v "$(pwd)/project:/home/coder/project" \
dgcosenza/vscode:latest
Open http://127.0.0.1:8080/.
See docker-compose.example.yml.
| Variable | Default | Description |
|---|---|---|
PORT | 8080 | Internal HTTP listening port. |
AUTH | password | Authentication mode (password or none when behind an authenticating proxy). |
PASSWORD_FILE | (empty) | Path to secret file containing the login password (also auto-reads /run/secrets/vscode_password). |
PASSWORD | (empty) | Plaintext login password (prefer PASSWORD_FILE or HASHED_PASSWORD). |
HASHED_PASSWORD | (empty) | Argon2/SHA-256 password hash accepted natively by code-server. |
PROXY_DOMAIN | (empty) | Optional proxy domain passed to --proxy-domain for port-forwarding subdomains. |
TZ | Etc/UTC | Container timezone. |
Ports: 8080/tcp. Volumes: /home/coder/.config, /home/coder/.local/share/code-server, /home/coder/project (owned by 1000:1000). User: coder (UID/GID 1000:1000). PID 1: tini.
HEALTHCHECK --interval=15s --timeout=5s --start-period=15s --retries=3 \
CMD ["/usr/local/bin/vscode-healthcheck"]
Probes http://127.0.0.1:${PORT}/healthz and verifies HTTP 200 with code-server's JSON heartbeat payload ("lastHeartbeat"). Tested on amd64 and arm64; do not disable in Compose.
codercom/code-server/home/coder/.config, /home/coder/.local/share/code-server, and /home/coder/project are owned by 1000:1000.dgcosenza/vscode@sha256:<digest> and pass PASSWORD_FILE=/run/secrets/vscode_password (or existing PASSWORD/HASHED_PASSWORD).cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/vscode-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/vscode:latest
gh attestation verify oci://ghcr.io/dgcosenza/vscode:latest --owner dgcosenza
UNKNOWN–CRITICAL, --ignore-unfixed, exit 1) and Grype on Syft SPDX SBOM (--only-fixed --fail-on negligible) across OS packages and bundled Node libraries on both amd64 and arm64.fixuid SUID binary: Eliminates dozens of historical Go stdlib CVEs and privilege-escalation surface by running natively as UID/GID 1000:1000 with cap_drop: [ALL] and no-new-privileges:true.SECURITY.md.docker buildx build --platform linux/amd64 --load -t dgcosenza/vscode:local .
./tests/smoke.sh dgcosenza/vscode:local
.github/workflows/daily.yml runs daily at 05:51 UTC with --no-cache: resolves latest coder/code-server release + per-arch SHA-256 checksums and debian:13.8-slim digest; patches bundled npm dependencies; runs live /healthz + auth smoke + Dive + Trivy + Grype gates on amd64 and arm64; publishes identical Cosign-signed SLSA L3 digests to Docker Hub and GHCR (plus optional secondary OCI mirrors); syncs docs & Hub overview; and manages a single ci-failure issue.
code-server releases: Keeps full upstream VS Code Web compatibility while enforcing 0 fixable CVEs across all bundled libraries.packaging: MIT): MIT License — copyright Daniel G. Cosenza from FNX Labs.coder/code-server (upstream: MIT): MIT License. See THIRD-PARTY-NOTICES.md.Maintained by Daniel G. Cosenza from FNX Labs. Upstream: coder/code-server.
Content type
Image
Digest
sha256:e7da200e7…
Size
334.2 MB
Last updated
about 3 hours ago
docker pull dgcosenza/vscode