1
0
Эх сурвалжийг харах

adding dockerfile for release

Rodja Trappe 4 жил өмнө
parent
commit
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 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
 from typing import Union
 import docutils.core
-import icecream
-icecream.install()
 
 # add docutils css to webpage
 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