back to waitress

This commit is contained in:
Marco Andronaco 2023-08-10 02:09:59 +02:00
parent 76a90cd6e7
commit 08f88f33cc
4 changed files with 5 additions and 15 deletions

View File

@ -1,4 +1,4 @@
FROM tecktron/python-bjoern:latest-slim
FROM tecktron/python-waitress:slim
RUN pip install --upgrade pip
COPY ./requirements.txt .

View File

@ -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')

12
poetry.lock generated
View File

@ -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"

View File

@ -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"]