You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN apt-get install -y libglib2.0-0 libsm6 libxrender1 libxext6 libxext-dev
72
+
# Create a working directory for the mounted volume
73
+
WORKDIR /app
74
+
RUN python3.12 -m venv /app/venv
113
75
114
-
# Install the latest version of alf
115
-
# RUN pip install alf@git+https://github.com/HorizonRobotics/alf@pytorch#egg=ALF --extra-index-url https://download.pytorch.org/whl/cu113
76
+
# Need to run umask 0000 so relax permissions for venv so that Hobot can pip install kincpp and ManiSkill
116
77
117
-
# Install pacakges from requirements.txt
118
-
COPY ./requirements.txt /tmp/requirements.txt
119
-
RUN pip install -r /tmp/requirements.txt
78
+
RUN umask 0000 && /app/venv/bin/pip install --upgrade pip
120
79
121
-
# Test cnest
122
-
RUN pip --version
123
-
RUN python -c "import cnest"
80
+
# Install torch 2.6 + cuda 11.8
81
+
RUN umask 0000 && /app/venv/bin/pip install torch==2.6.0 torchvision --index-url https://download.pytorch.org/whl/cu118
124
82
125
-
RUN pip install --upgrade protobuf==3.20.1
83
+
# Install all pip dependencies
84
+
COPY requirements.txt /app/
85
+
RUN umask 0000 && /app/venv/bin/pip install wheel
86
+
RUN umask 0000 && /app/venv/bin/pip install -r /app/requirements.txt
87
+
88
+
# Check for PyTorch with CUDA 11.8
89
+
RUN /app/venv/bin/python -c "import torch; import sys; version = torch.__version__; assert '+cu118' in version, f'Expected PyTorch with CUDA 11.8 (+cu118 suffix), but got version {version}'; sys.exit(0)"
126
90
127
-
# Enable EGL
128
91
ENV PYOPENGL_PLATFORM=egl
129
-
RUN python -c "from OpenGL.raw.EGL._types import *"
0 commit comments