瀏覽代碼

adding dockerfile for release

Rodja Trappe 4 年之前
父節點
當前提交
612747d509
共有 3 個文件被更改,包括 10 次插入3 次删除
  1. 1 1
      README.md
  2. 0 2
      main.py
  3. 9 0
      release.dockerfile

+ 1 - 1
README.md

@@ -46,4 +46,4 @@ Note: The script will automatically reload the GUI if you modify your code.
 
 
 ## API
 ## API
 
 
-API Reference is hosted at [https://nicegui.io](https://nicegui.io). Also have a look at [examples.py](https://github.com/zauberzeug/nicegui/tree/main/examples.py) for an extensive demonstration what you can do with NiceGUI.
+The API reference is hosted at [https://nicegui.io](https://nicegui.io). 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.

+ 0 - 2
main.py

@@ -8,8 +8,6 @@ from nicegui.elements.element import Element
 import sys
 import sys
 from typing import Union
 from typing import Union
 import docutils.core
 import docutils.core
-import icecream
-icecream.install()
 
 
 # add docutils css to webpage
 # add docutils css to webpage
 wp.head_html += docutils.core.publish_parts('', writer_name='html')['stylesheet']
 wp.head_html += docutils.core.publish_parts('', writer_name='html')['stylesheet']

+ 9 - 0
release.dockerfile

@@ -0,0 +1,9 @@
+FROM python:3.9-slim
+
+RUN python -m pip install nicegui
+
+WORKDIR /app
+
+COPY main.py README.md . 
+
+CMD python3 main.py