FROM python:3.11-slim # Set the working directory in the container WORKDIR /app # Copy all files into the container COPY . . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose the port EXPOSE 7860 # Run the FastAPI app CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]