# Use official Python image FROM python:3.10-slim # Set working directory WORKDIR /app # Copy files COPY requirements.txt . COPY app.py . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose port EXPOSE 8000 # Run FastAPI app CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]