-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (39 loc) · 1.84 KB
/
Copy pathDockerfile
File metadata and controls
51 lines (39 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved.
# SPDX-License-Identifier: MIT
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ENV DEBIAN_FRONTEND=noninteractive
ENV HSA_OVERRIDE_GFX_VERSION=11.0.0
WORKDIR /ryzers
# Basic environment setup
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONUNBUFFERED=1 \
HSA_OVERRIDE_GFX_VERSION=11.0.0
# System packages: Vulkan + FFmpeg + EGL for headless rendering
RUN apt-get update && apt-get install -y --no-install-recommends \
curl wget git ca-certificates locales \
libvulkan1 mesa-vulkan-drivers vulkan-tools \
ffmpeg \
libgl1 libglib2.0-0 \
libegl1-mesa-dev libgles2-mesa-dev \
&& rm -rf /var/lib/apt/lists/*
# pip configuration (system-wide inside the container)
RUN mkdir -p /etc/pip.conf.d/ && \
echo "[global]" > /etc/pip.conf.d/pip.conf && \
echo "break-system-packages = true" >> /etc/pip.conf.d/pip.conf
# Locale setup (optional but kept for completeness)
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
# Compatible build: NumPy 2.x with corresponding scikit-image version
RUN pip3 install --no-cache-dir --break-system-packages "numpy==2.1.2" && \
pip3 install --no-cache-dir --break-system-packages "scikit-image==0.24.0" && \
pip3 install --no-cache-dir --break-system-packages "matplotlib==3.10.8"
# Genesis and gstaichi (compatible with Genesis 0.3.3; beta release fixes kernel interface mismatch)
RUN pip3 install --no-cache-dir --break-system-packages "gstaichi==2.5.0" \
&& pip3 install --no-cache-dir --break-system-packages "genesis-world==0.3.3"
# Copy test script
COPY test.py /ryzers/test_genesis.py
COPY demo.sh /ryzers/demo_genesis.sh
COPY demo.py /ryzers/demo_genesis.py
RUN chmod +x /ryzers/test_genesis.py /ryzers/demo_genesis.sh /ryzers/demo_genesis.py
RUN git clone https://github.com/Genesis-Embodied-AI/Genesis
CMD /ryzers/test_genesis.py