From 923cbbc01113da8ec909ba35fcc308ae6cd8f6f3 Mon Sep 17 00:00:00 2001 From: Zihan Xiao <98075925+zihanxiao23@users.noreply.github.com> Date: Mon, 9 Dec 2024 17:17:18 -0500 Subject: [PATCH] Update Dockerfile --- .devcontainer/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index c6a1543..a73e8c5 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -17,5 +17,5 @@ COPY . /app # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt -# Start the Flask service -CMD ["python", "src/app.py"] +# Start FastAPI with Gunicorn and Uvicorn +CMD ["gunicorn", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:5000", "src.app:app"]