Преглед на файлове

howto start docker container

Rodja Trappe преди 4 години
родител
ревизия
6284a24812
променени са 1 файла, в които са добавени 10 реда и са изтрити 0 реда
  1. 10 0
      README.md

+ 10 - 0
README.md

@@ -44,6 +44,16 @@ python3 main.py
 
 
 The GUI is now avaliable through http://localhost/ in your browser. Note: The script will automatically reload the page when you modify the code.
 The GUI is now avaliable through http://localhost/ in your browser. Note: The script will automatically reload the page when you modify the code.
 
 
+## Docker
+
+Use the [multi-arch docker image](https://hub.docker.com/repository/docker/zauberzeug/nicegui) for pain free installation:
+
+```bash
+docker run --rm -p 8888:80 -v $(pwd)/my_script.py:/app/main.py -it zauberzeug/nicegui:latest
+```
+
+This will start the server at http://localhost:8888 with code from `my_script.py` within the current directory. Code modification trigger an automatic reload.
+
 ## API
 ## API
 
 
 The API reference is hosted at [https://nicegui.io](https://nicegui.io) and is [implemented with NiceGUI itself](https://github.com/zauberzeug/nicegui/blob/main/main.py). You should also have a look at [examples.py](https://github.com/zauberzeug/nicegui/tree/main/examples.py) for an extensive demonstration of what you can do with NiceGUI.
 The API reference is hosted at [https://nicegui.io](https://nicegui.io) and is [implemented with NiceGUI itself](https://github.com/zauberzeug/nicegui/blob/main/main.py). You should also have a look at [examples.py](https://github.com/zauberzeug/nicegui/tree/main/examples.py) for an extensive demonstration of what you can do with NiceGUI.