Containerized CI
Recipe — containerized CI evaluation with a minimal Dockerfile.
Dockerfile
FROM python:3.11-slim
# Install the SDK from the LayerLens package index, plus minimal CI deps
RUN pip install --no-cache-dir \
--extra-index-url https://sdk.layerlens.ai/package \
layerlens==1.3.0 \
httpx \
tenacity
# Non-root user for safety
RUN useradd -m runner
USER runner
WORKDIR /work
# Copy the eval script(s)
COPY --chown=runner:runner scripts/ scripts/
ENTRYPOINT ["python", "scripts/ci-eval.py"]Build and push
Use it from CI
Why containerize
Pinning vs. floating
See also
Last updated
Was this helpful?