FROM python:3.11-slim

LABEL maintainer="Aperion Team"
LABEL description="The Archivist - Documentation enforcement CLI"

WORKDIR /app

# Install dependencies
COPY pyproject.toml README.md ./
COPY src/ ./src/

RUN pip install --no-cache-dir -e .

# Create non-root user
RUN useradd -m -s /bin/bash archivist
USER archivist

# Set entrypoint
ENTRYPOINT ["archivist"]
CMD ["--help"]
