updated README.md
All checks were successful
CI / Build Pip package (push) Successful in 19s
CI / Build Docker image (push) Successful in 3m44s

This commit is contained in:
2024-10-23 21:09:11 +08:00
parent 7d9cae76c1
commit 2ca7f8e908
2 changed files with 23 additions and 9 deletions

3
.gitignore vendored
View File

@@ -2,3 +2,6 @@
__pycache__ __pycache__
*.pyc *.pyc
src/bugis/_version.py src/bugis/_version.py
*.egg-info
/build
/dist

View File

@@ -1,12 +1,23 @@
# Run
## How to
### Build the docker image
```bash ```bash
uwsgi --need-plugin /usr/lib/uwsgi/python_plugin.so \ docker build -t gitea.woggioni.net/woggioni/bugis:latest .
--need-plugin /usr/lib/uwsgi/gevent_plugin.so \ ```
-H venv \ ### Build the pip package
--http :1180 \ ```bash
-w md2html.uwsgi_handler \ pyproject-build
--http-keepalive \ ```
--http-auto-chunked \
--gevent 10 ### Run in docker
```bash
docker run --rm -v /your/document/directory:/srv/http --user $(id -u):$(id -g) -p 127.0.0.1:8000:8000 gitea.woggioni.net/woggioni/bugis:latest
```
### Run in docker with `nginx` and `plantUML` server
```bash
docker compose up --build
``` ```