build: preserve worker dependency cache across builds

This commit is contained in:
eust-w 2026-07-11 00:54:40 +08:00
parent 353e1155e9
commit 07a09bcd01

View File

@ -11,8 +11,6 @@ ARG VGGT_MODEL_REVISION=860abec7937da0a4c03c41d3c269c366e82abdf9
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
REAL2SIM_PLATFORM_BUILD_ID=${BUILD_ID} \
REAL2SIM_SOURCE_COMMIT=${SOURCE_COMMIT} \
REAL2SIM_VGGT_MODEL_REVISION=${VGGT_MODEL_REVISION} \
REAL2SIM_ANYSPLAT_ROOT=/opt/real2sim_paper_runtime/AnySplat \
REAL2SIM_ANY_SPLAT_PYTHON=/opt/real2sim_paper_runtime/envs/anysplat/bin/python \
@ -67,6 +65,9 @@ RUN python -c 'import mujoco, motrixsim, torch; from huggingface_hub import snap
PYTHONPATH=/opt/real2sim_paper_runtime/AnySplat python -c 'from src.model.model.anysplat import AnySplat; assert AnySplat is not None' && \
test -f /opt/gs_playground/scripts/real2sim_video_motrix_scene.py
ENV REAL2SIM_PLATFORM_BUILD_ID=${BUILD_ID} \
REAL2SIM_SOURCE_COMMIT=${SOURCE_COMMIT}
RUN useradd --uid 10001 --create-home --shell /usr/sbin/nologin real2sim && \
chown -R 10001:10001 /app
USER 10001:10001