🇺🇸 English ·
🇨🇳 中文 | Table of Contents
🐳 Minimal, elegant Docker image for running Apache Subversion's svnserve.
| Feature | Description |
|---|---|
| Multi-stage build | Builds Subversion from source (default 1.14.5) and copies only runtime files to a slim image to reduce final image size. |
| Small runtime image | Only runtime libraries are included to minimize image footprint. |
Tiny init (tino) |
Uses a minimal init (/sbin/tino) as PID 1 for proper signal handling and reaping. |
| Healthcheck | Verifies svnserve is running by checking the pid file /run/svnserve.pid. |
| Data persistence | Repositories are stored under /opt/app/svn/data; mount a host volume for persistence. |
| CI & multi-arch | GitHub Actions builds multi-architecture images and pushes to GHCR. Tags include latest, commit SHA and extracted Subversion version. |
| Configurable version | Change the Subversion version by editing the download URL in the Dockerfile (e.g. subversion-1.14.5.tar.bz2). |
docker run -d --name svn -p 3690:3690 \
-v ./data:/opt/app/svn/data \
--restart unless-stopped \
ghcr.io/lvillis/svn:1.14.5curl -fsSL -o docker-compose.yaml https://raw.githubusercontent.com/lvillis/svn-docker/main/docker-compose.yaml
docker-compose up -d