FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9 WORKDIR /app COPY ./app /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Run the FastAPI app CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]