diff options
author | terminaldweller <devi@terminaldweller.com> | 2023-04-27 20:56:23 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2023-04-27 20:56:23 +0000 |
commit | 134e48ee320439fa8b919b5796cb9f0ac6a55619 (patch) | |
tree | 4db61a7a1e6771e37d41b0dba31b115f6a114bef /README.md | |
parent | magni can now get a user agent from an env var, fixed the readme for http_proxy (diff) | |
download | magni-134e48ee320439fa8b919b5796cb9f0ac6a55619.tar.gz magni-134e48ee320439fa8b919b5796cb9f0ac6a55619.zip |
added docker
Diffstat (limited to '')
-rw-r--r-- | README.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -28,6 +28,23 @@ you can obviously use `poetry run` as well: HTTPS_PROXY=socks5h://127.0.0.1:9094 poetry run ./magni.py --url https://chapmanganato.com/manga-dt980702/chapter-184 ``` +### Docker + +#### Build +```sh +docker build -t magni:latest --load . +``` + +#### Run +```sh +docker run -p 8086:8086 \ + -e HTTPS_PROXY=socks5h://192.168.1.100:9050 \ + -e MAGNI_MODEL_PATH=/opt/magni_models \ + -e MAGNI_IMAGE_PATH=/opt/magni_images \ + -v ./models:/opts/magni_models \ + magni:latest --url https://chapmanganato.com/manga-dt980702/chapter-184 +``` + ## Env Vars magni recognizes three environment variables:</br> |