# Use the official Python image as a base FROM python:3.9-slim # Copy requirements and install them COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Expose the port FastAPI will run on EXPOSE 8000 # Command to run the application CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]