File size: 1,751 Bytes
37d21bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# simready-generation:latest, the MuJoCo agents' runtime: MuJoCo, headless Blender (install_blender.sh), the geometry and
# vision packages of requirements-tools.txt, pinned Codex (install_codex.sh) and OpenCode with ripgrep (install_opencode.sh).
#   docker build -t simready-generation:latest -f src/simready/generation/runtime/Dockerfile src/simready/generation/runtime
FROM python:3.12-slim-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends \
    bash ca-certificates curl git libstdc++6 libegl1 libgl1 libglib2.0-0 libosmesa6 ffmpeg xz-utils \
    libx11-6 libxi6 libxxf86vm1 libxfixes3 libxrender1 libxkbcommon0 libsm6 libice6 libxext6 libxrandr2 libxinerama1 libxcursor1 \
    libopengl0 libgomp1 libdbus-1-3 libwayland-client0 libwayland-egl1 libwayland-cursor0 \
    && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir mujoco==4.0.0 mujoco-core==4.0.0 mujoco-studio==4.0.0 numpy==2.4.4 scipy==1.18.1 Pillow==12.2.0 imageio-ffmpeg==0.7.0
COPY install_blender.sh /tmp/install_blender.sh
RUN bash /tmp/install_blender.sh && rm /tmp/install_blender.sh
COPY requirements-tools.txt /tmp/requirements-tools.txt
RUN pip install --no-cache-dir -r /tmp/requirements-tools.txt numpy==2.4.4 && rm /tmp/requirements-tools.txt
COPY install_opencode.sh /tmp/install_opencode.sh
RUN bash /tmp/install_opencode.sh && rm /tmp/install_opencode.sh && rm -rf /root/.local /root/.cache /root/.config
COPY install_codex.sh /tmp/install_codex.sh
RUN bash /tmp/install_codex.sh && rm /tmp/install_codex.sh
# No network but the CLI API (session.EGRESS_HOSTS): every package an agent may use is installed here.
ENV MUJOCO_GL=osmesa PYTHONUNBUFFERED=1 PIP_DISABLE_PIP_VERSION_CHECK=1 PATH=/tmp/agent-home/.local/bin:$PATH
WORKDIR /work