diff --git a/Dockerfile b/Dockerfile index 5d99c4e..b0798e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM tecktron/python-bjoern:latest-slim +FROM tecktron/python-waitress:slim RUN pip install --upgrade pip COPY ./requirements.txt . diff --git a/artbound_python/__main__.py b/artbound_python/__main__.py index 83e0e63..657d7b7 100644 --- a/artbound_python/__main__.py +++ b/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') diff --git a/poetry.lock b/poetry.lock index 43e2b04..18ddd98 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,15 +1,5 @@ # 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" @@ -619,4 +609,4 @@ watchdog = ["watchdog (>=2.3)"] [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "de64c0794273972780eb6f2b764d8b6342a0130e071168036da07b03161e33b3" +content-hash = "7b2f18453c5f2e455a8296d20d2f509f00d63462cb73b34c099c071a3d66e9fb" diff --git a/pyproject.toml b/pyproject.toml index faf688c..43955ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ waitress = "^2.1.2" optional = true [tool.poetry.group.prod.dependencies] -bjoern = "^3.2.2" +waitress = "^2.1.2" [build-system] requires = ["poetry-core"]