# Use a lightweight Python image FROM python:3.10-slim # Set the working directory WORKDIR /app # Copy all files to the container COPY . /app # Install dependencies RUN pip install -r requirements.txt # Expose port 7860 EXPOSE 7860 # Run the FastAPI app CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]