document docker usage

This commit is contained in:
Tobias Brunner 2025-03-07 16:58:54 +01:00
parent 07e45924d1
commit c850310754
No known key found for this signature in database

View file

@ -33,6 +33,24 @@ uv run djlint src/ --reformat --format-js --format-css # Format templates, JS a
uv run flake8 src/ # Python linter
```
### Docker
The project provides a Dockerfile which builds a production-ready container image.
It uses [Caddy](https://caddyserver.com/) to serve static files and connect to [Gunicorn](https://gunicorn.org/), the Python WSGI application server.
Building:
```bash
docker build -t local/servala-portal .
```
Running:
```bash
docker run --rm -ti -p 8080:8080 --name=servala-portal --rm --env-file .env local/servala-portal
```
TODO: Persistence
### Testing