# Use Python base image FROM python:3.9-slim # Set the working directory WORKDIR /app # Copy project files to the container COPY . /app # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose the default FastAPI port EXPOSE 8000 # Command to run FastAPI with Uvicorn CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]