HUB
Sign inSign up
pairdrop logo

dgcosenza/pairdrop

By dgcosenza

•Updated about 4 hours ago

Hardened rootless PairDrop local file sharing server on Debian 13 (multi-arch, 0 fixable CVEs).

Image
0

158

dgcosenza/pairdrop repository overview

⁠PairDrop — Hardened Debian 13 (trixie-slim) Container Image

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 PairDrop local network and WebRTC file sharing container built from official source on Debian 13 (trixie-slim) + Node 24 LTS. Maintained by Daniel G. Cosenza from FNX Labs.

⁠Overview

dgcosenza/pairdrop is a drop-in, zero-fixable-CVE replacement for lscr.io/linuxserver/pairdrop. It builds official schlagmichdoch/PairDrop releases in a Node 24 builder stage and copies only the /usr/local/bin/node binary and production dependencies into debian:13.8-slim (eliminating npm and corepack from the runtime image). It runs strictly as non-root UID/GID 1000:1000 with read_only: true and cap_drop: [ALL].

⁠Current Versions

ComponentResolved Version
PairDrop1.11.3
Base OSDebian 13.8 (trixie-slim)
Architectureslinux/amd64, linux/arm64
Uncompressed size (per arch)amd64: 97.6 MB, arm64: 266.3 MB
Last verified build (UTC)2026-11-28
Published multi-arch digestdgcosenza/pairdrop@sha256:5032062cbd355cf80d6429160ddac1c3e5c6d4415d3351c89e44f7e3170a560f
GHCR mirrorghcr.io/dgcosenza/pairdrop@sha256:5032062cbd355cf80d6429160ddac1c3e5c6d4415d3351c89e44f7e3170a560f
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. 1.11.3)MovingLatest verified build for that upstream release.
<version>-<YYYYMMDD>ImmutableDate-stamped daily security rebuild.
sha-<short>ImmutableGit commit tag from this repository.

Pin production deployments by immutable digest: dgcosenza/pairdrop@sha256:<digest> or ghcr.io/dgcosenza/pairdrop@sha256:<digest>.

⁠Supported Architectures

ArchitectureStatusVerification
linux/amd64Published & natively testedNative x86_64 build, smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3.
linux/arm64Published & natively testedNative ARM64 build, 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 before docker compose up -d.

docker run -d --name pairdrop --restart unless-stopped \
  --read-only --tmpfs /tmp:uid=1000,gid=1000 \
  --cap-drop ALL --security-opt no-new-privileges:true \
  -p 127.0.0.1:3000:3000 \
  dgcosenza/pairdrop:latest

⁠Compose Example

See docker-compose.example.yml⁠:

services:
  pairdrop:
    image: dgcosenza/pairdrop:latest
    container_name: pairdrop
    restart: unless-stopped
    read_only: true
    cap_drop:
      - ALL
    security_opt:
      - no-new-privileges:true
    tmpfs:
      - /tmp:uid=1000,gid=1000
    ports:
      - "127.0.0.1:3000:3000"
    environment:
      TZ: "Etc/UTC"
      PORT: "3000"
      RATE_LIMIT: "false"
      WS_FALLBACK: "false"

⁠Configuration

VariableDefaultDescription
PORT3000HTTP listening port for the PairDrop web and signaling server.
RATE_LIMITfalseSet to true to enable request rate limiting (--rate-limit).
WS_FALLBACKfalseSet to true to enable WebSocket fallback when WebRTC is blocked.
TZEtc/UTCContainer timezone.

Ports: 3000/tcp (PairDrop WebUI & WebSocket signaling). Volumes: None required (stateless signaling server). User: pairdrop (UID/GID 1000:1000). PID 1: tini.

⁠Healthcheck

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

Probes http://127.0.0.1:${PORT}/ and verifies HTTP 200 with PairDrop HTML content.

⁠Upgrade / Migration from linuxserver/pairdrop

  1. Replace image with dgcosenza/pairdrop@sha256:<digest>.
  2. Keep RATE_LIMIT, WS_FALLBACK, and port 3000; enable read_only: true and cap_drop: [ALL].

⁠Supply-Chain Verification

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

gh attestation verify oci://ghcr.io/dgcosenza/pairdrop:latest --owner dgcosenza

⁠Security

  • 0 fixable vulnerabilities of any severity: Hard-gated in CI by Trivy (UNKNOWN–CRITICAL, --ignore-unfixed, exit 1) and Grype on the Syft SPDX SBOM (--only-fixed --fail-on negligible) on both amd64 and arm64.
  • Hardened runtime: Runs under tini PID 1 with least-privilege capabilities and no-new-privileges:true.
  • Report issues via SECURITY.md⁠.

⁠Build Locally

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

⁠Update Policy

.github/workflows/daily.yml⁠ runs daily at 05:33 UTC with --no-cache: refreshes the debian:13.8-slim digest and OS security patches, runs smoke + Dive + Trivy + Grype gates on amd64 and arm64, publishes identical Cosign-signed SLSA L3 digests to Docker Hub and GHCR (plus optional Quay.io, GitLab, Codeberg, and Amazon ECR Public mirrors when configured), creates a signed GitHub Release, syncs docs & Docker Hub overview, and manages a single ci-failure issue.

⁠Design Decisions

  • Zero npm in runtime: Copies only /usr/local/bin/node and production node_modules into debian:13.8-slim.
  • Stateless & read_only: true: Runs with an immutable root filesystem.

⁠License

Packaging, scripts, workflows, and documentation (packaging: MIT, upstream: GPL-3.0-only) are licensed under the MIT License⁠ — copyright Daniel G. Cosenza from FNX Labs. Third-party upstream notices: THIRD-PARTY-NOTICES.md⁠.

⁠Credits

Maintained by Daniel G. Cosenza from FNX Labs. Upstream project: schlagmichdoch/PairDrop⁠.

Tag summary

Content type

Image

Digest

sha256:5032062cb…

Size

93 MB

Last updated

about 4 hours ago

docker pull dgcosenza/pairdrop