Initialize Django project #8

Merged
rixx merged 34 commits from 1-initialize-project into main 2025-03-16 09:09:26 +00:00
Showing only changes of commit c850310754 - Show all commits

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