feat: add Docker Compose deployment and serve assets via StaticFS

Embed full assets directory and serve with via's StaticFS instead of a
custom HTTP handler. Move SQLite DB to data/c4.db for clean volume
mounting. Add multi-stage Dockerfile, docker-compose.yml, and
.dockerignore.
This commit is contained in:
Ryan Hamamura
2026-02-13 08:02:15 -10:00
parent b0449fbeb9
commit 427521505b
4 changed files with 70 additions and 11 deletions

17
docker-compose.yml Normal file
View File

@@ -0,0 +1,17 @@
services:
c4:
build: .
container_name: c4
restart: unless-stopped
ports:
- "8080:8080"
env_file:
- path: .env
required: false
environment:
- PORT=8080
volumes:
- c4-data:/app/data
volumes:
c4-data: