FROM python:3.10-slim

WORKDIR /app

# Install system dependencies if needed
# RUN apt-get update && apt-get install -y ...

# Copy project configuration and source first so editable install sees the package
COPY pyproject.toml .
COPY README.md .
COPY src/ src/

# Install dependencies in editable mode for dev convenience
RUN pip install --no-cache-dir -e .

# Set python path to include src
ENV PYTHONPATH=/app/src

# Default command
CMD ["python", "-m", "src.server"]
