FROM python:3.12-slim

RUN apt-get update && apt-get install -y curl build-essential && \
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
    rm -rf /var/lib/apt/lists/*
ENV PATH="/root/.cargo/bin:${PATH}"

RUN cargo install sysml-cli

WORKDIR /app
COPY . .
RUN pip install --no-cache-dir .

CMD ["python", "-m", "eval.llm_cli", "--help"]
