From 7359daea4f8e4f75bb57082dcbb8feea7c271c8c Mon Sep 17 00:00:00 2001 From: albertkun Date: Tue, 21 Nov 2023 00:03:26 -0800 Subject: [PATCH] fix: gunicorn command to use uvicorn --- fastapi/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/Dockerfile b/fastapi/Dockerfile index 4ed24e7..598e340 100644 --- a/fastapi/Dockerfile +++ b/fastapi/Dockerfile @@ -45,5 +45,5 @@ print(f'export DB_NAME={result.path[1:]}')" > /tmp/env.sh && \ echo "auth_file = /etc/pgbouncer/userlist.txt" >> /etc/pgbouncer/pgbouncer.ini && \ echo "client_login_timeout = 120" >> /etc/pgbouncer/pgbouncer.ini && \ gosu pgbouncer pgbouncer /etc/pgbouncer/pgbouncer.ini & \ - exec gunicorn -k uvicorn.workers.UvicornWorker app.main:app --bind 0.0.0.0:80 --workers 2 + exec uvicorn app.main:app --host 0.0.0.0 --port 80 --workers 2 EXPOSE 80 \ No newline at end of file