From 7381297f113f4467614441772b070c9d65bf04aa Mon Sep 17 00:00:00 2001 From: fakebizprez Date: Sat, 3 Jan 2026 14:08:58 -0600 Subject: [PATCH] Update Dockerfile and wsgi.py to simplify waitress-serve command - Removed the '--call' option from the CMD instruction in both Dockerfile and wsgi.py for cleaner command usage. - Updated usage instructions in wsgi.py to reflect the change in command syntax. --- Dockerfile | 2 +- wsgi.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c423da..05cee0e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,4 +40,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ CMD python -c "import requests; requests.get('http://localhost:8080/health', timeout=5)" || exit 1 # Use Waitress for production deployment -CMD ["waitress-serve", "--host=0.0.0.0", "--port=8080", "--threads=1", "--channel-timeout=120", "--call", "wsgi:app"] +CMD ["waitress-serve", "--host=0.0.0.0", "--port=8080", "--threads=1", "--channel-timeout=120", "wsgi:app"] diff --git a/wsgi.py b/wsgi.py index a30f656..5ec2191 100644 --- a/wsgi.py +++ b/wsgi.py @@ -5,10 +5,10 @@ for use with Waitress or other WSGI servers. Usage: - waitress-serve --host=0.0.0.0 --port=8080 --threads=1 --call wsgi:app + waitress-serve --host=0.0.0.0 --port=8080 --threads=1 wsgi:app Or in docker-compose.yml: - CMD ["waitress-serve", "--host=0.0.0.0", "--port=8080", "--threads=1", "--call", "wsgi:app"] + CMD ["waitress-serve", "--host=0.0.0.0", "--port=8080", "--threads=1", "wsgi:app"] """ import logging