HUB
Sign inSign up
vscode logo

dgcosenza/vscode

By dgcosenza

•Updated about 3 hours ago

Hardened rootless VS Code Server (code-server) on Debian 13, multi-arch, signed, 0 fixable CVEs.

Image
0

769

dgcosenza/vscode repository overview

⁠VS Code Server (code-server) — Hardened Debian 13 (trixie-slim) Browser IDE

Daily CI OpenSSF Scorecard Workflow Gitleaks Secret Scan Public Content Check OpenSSF Scorecard OpenSSF Best Practices

Trivy + Grype: 0 Fixable CVEs Signed: Cosign OIDC SLSA Build L3 SBOM: SPDX + CycloneDX Base OS Architectures Healthcheck: CI Verified Renovate Enabled Dependabot Enabled Daily Rebuilds

Latest Release Release Date Last Commit Docker Pulls Docker Image Size Registries: Docker Hub + GHCR Packaging License: MIT Upstream License GitHub Issues FNX Labs Catalog

A 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.

⁠Overview

dgcosenza/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).

⁠Current Versions

ComponentResolved Version
code-server4.146.0
Base OSDebian 13.8 (trixie-slim)
Architectureslinux/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 digestdgcosenza/vscode@sha256:e7da200e7c4c035e3299ff9f7e7cb2dbd1cee623cc018e2849d7e81324d6d868
GHCR mirrorghcr.io/dgcosenza/vscode@sha256:e7da200e7c4c035e3299ff9f7e7cb2dbd1cee623cc018e2849d7e81324d6d868
Supply chainCosign 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)

⁠Supported Tags

TagPolicyDescription
latestMovingLatest verified multi-arch build passing all CVE, Dive, and smoke gates.
<version> (e.g. 4.146.0)MovingLatest verified build for that code-server release.
<version>-<YYYYMMDD>ImmutableDate-stamped daily security rebuild.
sha-<short>ImmutableGit commit tag from this repository.

⁠Supported Architectures

ArchitectureStatusVerification
linux/amd64Published & natively testedLive /healthz + auth redirect smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3.
linux/arm64Published & natively testedLive /healthz + auth redirect smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3.

⁠Quick Start

Volume ownership note: docker-compose.example.yml defaults 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 by 1000:1000 (mkdir -p ./data && chown 1000:1000 ./data) before docker 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/.

⁠Compose Example

See docker-compose.example.yml⁠.

⁠Configuration

VariableDefaultDescription
PORT8080Internal HTTP listening port.
AUTHpasswordAuthentication 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.
TZEtc/UTCContainer 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

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.

⁠Upgrade / Migration from codercom/code-server

  1. Ensure mounted /home/coder/.config, /home/coder/.local/share/code-server, and /home/coder/project are owned by 1000:1000.
  2. Switch the image to dgcosenza/vscode@sha256:<digest> and pass PASSWORD_FILE=/run/secrets/vscode_password (or existing PASSWORD/HASHED_PASSWORD).

⁠Supply-Chain Verification

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

⁠Security

  • 0 fixable vulnerabilities of any severity: Hard-gated by Trivy (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.
  • No legacy 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.
  • SHA-256 verified upstream tarballs: Every build validates exact per-architecture GitHub release digests before extraction.
  • Report issues via SECURITY.md⁠.

⁠Build Locally

docker buildx build --platform linux/amd64 --load -t dgcosenza/vscode:local .
./tests/smoke.sh dgcosenza/vscode:local

⁠Update Policy

.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.

⁠Design Decisions

  • Targeted dependency remediation on official code-server releases: Keeps full upstream VS Code Web compatibility while enforcing 0 fixable CVEs across all bundled libraries.
  • Telemetry and update checks disabled by default: Minimizes unsolicited outbound network requests in private environments.

⁠License

⁠Credits

Maintained by Daniel G. Cosenza from FNX Labs. Upstream: coder/code-server⁠.

Tag summary

Content type

Image

Digest

sha256:e7da200e7…

Size

334.2 MB

Last updated

about 3 hours ago

docker pull dgcosenza/vscode