forked from NVlabs/GENMO
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (40 loc) · 1.21 KB
/
Copy pathDockerfile
File metadata and controls
51 lines (40 loc) · 1.21 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
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-OneWay-Noncommercial
FROM nvidia/cuda:12.4.0-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
# System dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
python3.10 \
python3.10-venv \
python3.10-dev \
python3-pip \
git \
wget \
curl \
gosu \
xvfb \
libegl1-mesa-dev \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Install uv
RUN pip install uv
# Set up workspace
WORKDIR /workspace/gem-smpl
COPY . /workspace/gem-smpl
# Create virtual environment
RUN uv venv .venv --python 3.10
# Install PyTorch
RUN . .venv/bin/activate && \
uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cu124
# Install GEM-SMPL and dependencies
RUN . .venv/bin/activate && \
bash scripts/install_env.sh
# Headless rendering environment
ENV PYOPENGL_PLATFORM=egl
ENV EGL_PLATFORM=surfaceless
# Activate venv by default
ENV PATH="/workspace/gem-smpl/.venv/bin:${PATH}"
ENV VIRTUAL_ENV="/workspace/gem-smpl/.venv"
ENTRYPOINT ["tools/docker-entrypoint.sh"]
CMD ["bash"]