|
@@ -13,4 +13,7 @@ WORKDIR /app
|
|
|
COPY ./pyproject.toml ./poetry.lock* main.py ./
|
|
|
RUN poetry install --no-root
|
|
|
|
|
|
+# do not show reload warning popup (see https://github.com/elimintz/justpy/issues/236#issuecomment-799431208)
|
|
|
+RUN sed -i "s/confirm('Page needs to be reloaded, click OK to reload')/true/g" /usr/local/lib/python3.9/site-packages/justpy/templates/main.html
|
|
|
+
|
|
|
CMD uvicorn --reload --host 0.0.0.0 --port 80 main:app
|