Add Dockerfile and docker-compose for containerised deploys

Multi-stage build: rust:1-slim-bookworm to compile (needs a recent
toolchain per smarm/urus's MSRV), then a distroless/cc runtime image
since the binary only links against glibc/libgcc/libm (checked via
ldd) - no shell or package manager needed at runtime, ~27MB vs ~87MB
for a debian-slim runtime.

- CCC_DB_PATH defaults to /data/cdn.db in-container
- docker-compose.yml persists /data in a named volume, maps 8333
This commit is contained in:
2026-08-08 16:27:50 +02:00
parent 289630d366
commit 06254e95a3
3 changed files with 38 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
target
*.db
.git