document docker usage
This commit is contained in:
parent
07e45924d1
commit
c850310754
1 changed files with 18 additions and 0 deletions
18
README.md
18
README.md
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue