FROM python:3.11-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    curl \
    && rm -rf /var/lib/apt/lists/*

# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application code
COPY swiss_calc/ /app/swiss_calc/

# Create entry point
RUN python3 -c "from swiss_calc import parser; print('✅ Module loaded')"

ENTRYPOINT ["python3", "-m", "swiss_calc"]
CMD ["--help"]
