back to waitress
BiRabittoh birabittoh@tilde.team
Thu, 10 Aug 2023 02:09:59 +0200
4 files changed,
5 insertions(+),
15 deletions(-)
M
Dockerfile
→
Dockerfile
@@ -1,4 +1,4 @@
-FROM tecktron/python-bjoern:latest-slim +FROM tecktron/python-waitress:slim RUN pip install --upgrade pip COPY ./requirements.txt .
M
artbound_python/__main__.py
→
artbound_python/__main__.py
@@ -1,4 +1,4 @@
-import bjoern +from waitress import serve from artbound_python import app -bjoern.run(app, "0.0.0.0", 1111) +serve(app, listen='*:1111')
M
poetry.lock
→
poetry.lock
@@ -1,16 +1,6 @@
# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. [[package]] -name = "bjoern" -version = "3.2.2" -description = "A screamingly fast Python 2 + 3 WSGI server written in C." -optional = false -python-versions = "*" -files = [ - {file = "bjoern-3.2.2.tar.gz", hash = "sha256:16e5a02a9a17a7f5f8bea0d7c58650e78ab80ead6fe3e390037573d4355baf31"}, -] - -[[package]] name = "blinker" version = "1.6.2" description = "Fast, simple object-to-object and broadcast signaling"@@ -619,4 +609,4 @@
[metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "de64c0794273972780eb6f2b764d8b6342a0130e071168036da07b03161e33b3" +content-hash = "7b2f18453c5f2e455a8296d20d2f509f00d63462cb73b34c099c071a3d66e9fb"
M
pyproject.toml
→
pyproject.toml
@@ -20,7 +20,7 @@ [tool.poetry.group.prod]
optional = true [tool.poetry.group.prod.dependencies] -bjoern = "^3.2.2" +waitress = "^2.1.2" [build-system] requires = ["poetry-core"]