FROM python:3.13-slim # Set working directory WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ build-essential \ && rm -rf /var/lib/apt/lists/* # Copy pyproject.toml first for better caching COPY pyproject.toml ./ # Install Python dependencies RUN pip install --no-cache-dir -e . # Copy application code COPY ./app ./app COPY ./data ./data COPY ./tests ./tests # Set Python path ENV PYTHONPATH=/app # Expose port EXPOSE 8000 # Command will be overridden by docker-compose CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]