HUB
Sign inSign up
excalidraw logo

dgcosenza/excalidraw

By dgcosenza

•Updated about 9 hours ago

Hardened source-built Excalidraw whiteboard on Debian 13 + NGINX (rootless, 0 fixable CVEs).

Image
0

670

dgcosenza/excalidraw repository overview

⁠Excalidraw — Hardened Debian 13 (trixie-slim) Whiteboard

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, read-only-rootfs-compatible Excalidraw collaborative whiteboard image built from official upstream source and served by minimal NGINX on Debian 13 (trixie-slim) (zero Node.js in runtime) — maintained by Daniel G. Cosenza from FNX Labs.

⁠Overview

dgcosenza/excalidraw is a drop-in replacement for excalidraw/excalidraw on port 80/tcp. It compiles the official Excalidraw web app from tagged upstream source in an isolated Node builder stage and copies only the static production bundle into a hardened non-root debian:13.8-slim + nginx-light runtime with security headers, gzip compression, /healthz liveness endpoint, and tini PID 1.

⁠Current Versions

ComponentResolved Version
Excalidraw0.18.1
Base OSDebian 13.8 (trixie-slim)
Architectureslinux/amd64, linux/arm64
Uncompressed size (per arch)amd64: 61.9 MB, arm64: 173.0 MB
Last verified build (UTC)2026-11-28
Published multi-arch digestdgcosenza/excalidraw@sha256:eb75749e3e7f7dcea0f32463ee16a8f9b2d308f90f81eb32580c9685d4b1c38e
GHCR mirrorghcr.io/dgcosenza/excalidraw@sha256:eb75749e3e7f7dcea0f32463ee16a8f9b2d308f90f81eb32580c9685d4b1c38e
Supply chainCosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance
Security gate (Trivy + Grype on SBOM)0 fixable findings of any severity (15 upstream-unfixed)

⁠Supported Tags

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

⁠Supported Architectures

ArchitectureStatusVerification
linux/amd64Published & natively testedRead-only rootfs non-root HTTP + header smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3.
linux/arm64Published & natively testedRead-only rootfs non-root HTTP + header 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.

docker run -d --name excalidraw --restart unless-stopped \
  --read-only --tmpfs /tmp/nginx:uid=1000,gid=1000 \
  --cap-drop ALL --cap-add NET_BIND_SERVICE \
  -p 127.0.0.1:8080:80 \
  dgcosenza/excalidraw:latest

Open http://127.0.0.1:8080/.

⁠Compose Example

See docker-compose.example.yml⁠.

⁠Configuration

Excalidraw is a client-side static web application: drawings live locally in the browser unless exported.

SettingValue
Port80/tcp (internal NGINX listener)
Userexcalidraw (UID/GID 1000:1000, cap_net_bind_service=+ep on /usr/sbin/nginx)
VolumesNone required (mount /tmp/nginx as tmpfs when using read_only: true)
TZEtc/UTC

⁠Healthcheck

HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
  CMD ["/usr/local/bin/excalidraw-healthcheck"]

Probes http://127.0.0.1:80/healthz and verifies HTTP 200 with body OK. Tested on amd64 and arm64; do not disable in Compose.

⁠Upgrade / Migration from excalidraw/excalidraw

Drop-in replacement on port 80/tcp: swap the image to dgcosenza/excalidraw@sha256:<digest> (optionally adding read_only: true + tmpfs: [/tmp/nginx:uid=1000,gid=1000]).

⁠Supply-Chain Verification

cosign verify \
  --certificate-identity-regexp="^https://github\.com/dgcosenza/excalidraw-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
  --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
  ghcr.io/dgcosenza/excalidraw:latest

gh attestation verify oci://ghcr.io/dgcosenza/excalidraw: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) on both amd64 and arm64.
  • Zero runtime Node.js: Only compiled static assets and hardened nginx-light enter the final image.
  • Rootless & read-only rootfs ready: Runs as UID/GID 1000:1000 with server_tokens off, nosniff, SAMEORIGIN, and Permissions-Policy.
  • Report issues via SECURITY.md⁠.

⁠Build Locally

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

⁠Update Policy

.github/workflows/daily.yml⁠ runs daily at 05:33 UTC with --no-cache: resolves latest excalidraw/excalidraw release and debian:13.8-slim digest; rebuilds the SPA and runs 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

  • Static NGINX runtime on Debian 13: Eliminates Node/npm runtime CVEs and shrinks the runtime image.
  • Non-root port 80 via cap_net_bind_service: Preserves drop-in port 80 parity with upstream excalidraw/excalidraw without running NGINX as root.

⁠License

⁠Credits

Maintained by Daniel G. Cosenza from FNX Labs. Upstream: Excalidraw⁠.

Tag summary

Content type

Image

Digest

sha256:eb75749e3…

Size

59 MB

Last updated

about 9 hours ago

docker pull dgcosenza/excalidraw