From 38b52b450d8fcf16f5c49374d644e293c63cdef2 Mon Sep 17 00:00:00 2001 From: zman Date: Mon, 7 Apr 2025 16:25:58 -0400 Subject: [PATCH] d --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 991e310..475644d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,17 @@ FROM python:3.13-slim WORKDIR /app +# Copy the requirements file COPY requirements.txt . +# Install the dependencies RUN pip install --no-cache-dir -r requirements.txt +# Copy the application files COPY . . +# Expose port 8000 EXPOSE 8000 -CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file +# Run the app using gunicorn +CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:8000", "app:app"] \ No newline at end of file