fix(docker): pin numpy==2.2.5 in separate RUN for robocasa

robocasa/__init__.py hard-asserts numpy==2.2.5. When bundled with other
packages in one uv install command, uv silently skips the numpy pin
(same "already resolved" bug hit with libero_plus). Moving the pin to a
dedicated final RUN step guarantees it is applied last.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Pepijn
2026-03-22 22:04:42 -07:00
parent 900e6b59c8
commit 8633608d26
+5 -1
View File
@@ -30,7 +30,11 @@ RUN git clone --depth 1 https://github.com/robocasa/robocasa.git /tmp/robocasa \
"h5py" \
"lxml" \
"tianshou==0.4.10" \
"easydict>=1.9" \
"easydict>=1.9"
# robocasa/__init__.py asserts numpy.__version__ in ["2.2.5"] — pin it last
# so no subsequent package can bump it away.
RUN uv pip install --no-cache "numpy==2.2.5" \
&& python -c "import robocasa"
CMD ["/bin/bash"]