# Agent container for cad/bracket-001 (Harbor layout: built from environment/).
# Python 3.12 with OpenCascade through OCP and numpy, at the versions of the recorded run. Everything is installed
# at build time; the task needs no network at run time. tests/ and solution/ are not copied in: the harness adds
# them only when the agent's run has ended.
FROM python:3.12.13-slim-bookworm

# Shared libraries the OCP and VTK wheels load (OpenGL, X11 and fontconfig), even when nothing is rendered.
RUN apt-get update \
 && apt-get install -y --no-install-recommends libgl1 libegl1 libglib2.0-0 libxrender1 libxext6 libx11-6 libfontconfig1 \
 && rm -rf /var/lib/apt/lists/*

# OCP 8.0.1.1 is the OpenCascade binding CadQuery is built on; numpy is used by the verifier.
RUN pip install --no-cache-dir cadquery-ocp==8.0.1.1.0 numpy==2.5.4 \
 && python -c "import OCP, numpy; print('OCP', OCP.__version__, 'numpy', numpy.__version__)"

WORKDIR /workspace
COPY project/ /workspace/project/
RUN mkdir -p /workspace/output
