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