# Use a lightweight Python base image FROM python:3.9-slim # Set the working directory in the container WORKDIR /app # Copy all files from the current directory to the container COPY . . # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose the port your app will run on EXPOSE 7860 # Run the FastAPI app with Uvicorn CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]