jbilcke-hf HF Staff commited on
Commit
2a9d7b4
·
verified ·
1 Parent(s): cdb69d7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -1,9 +1,15 @@
1
- # FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu20.04
2
  FROM nvidia/cuda:12.8.1-devel-ubuntu22.04
3
 
4
  ENV DEBIAN_FRONTEND=noninteractive \
5
  TZ=Europe/Paris
6
 
 
 
 
 
 
 
 
7
  # Remove any third-party apt sources to avoid issues with expiring keys.
8
  # Install some basic utilities
9
  RUN rm -f /etc/apt/sources.list.d/*.list && \
@@ -22,10 +28,14 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
22
  nano \
23
  bzip2 \
24
  libx11-6 \
 
 
 
25
  build-essential \
26
  libsndfile-dev \
27
  software-properties-common \
28
  && rm -rf /var/lib/apt/lists/*
 
29
 
30
  RUN add-apt-repository ppa:flexiondotorg/nvtop && \
31
  apt-get upgrade -y && \
@@ -52,7 +62,6 @@ RUN mkdir $HOME/.cache $HOME/.config \
52
  # Set up the Conda environment
53
  ENV CONDA_AUTO_UPDATE_CONDA=false \
54
  PATH=$HOME/miniconda/bin:$PATH
55
- # RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
56
  RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py313_25.5.1-0-Linux-x86_64.sh \
57
  && chmod +x ~/miniconda.sh \
58
  && ~/miniconda.sh -b -p ~/miniconda \
 
 
1
  FROM nvidia/cuda:12.8.1-devel-ubuntu22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
  TZ=Europe/Paris
5
 
6
+ # for headless GPU rendering
7
+ ENV MUJOCO_GL="egl"
8
+ ENV PYOPENGL_PLATFORM="egl"
9
+
10
+ #requirements for headless GPU rendering, see also https://github.com/mmatl/pyrender/issues/149
11
+ ENV NVIDIA_DRIVER_CAPABILITIES=compute,graphics,utility,video
12
+
13
  # Remove any third-party apt sources to avoid issues with expiring keys.
14
  # Install some basic utilities
15
  RUN rm -f /etc/apt/sources.list.d/*.list && \
 
28
  nano \
29
  bzip2 \
30
  libx11-6 \
31
+ # if the next line does not work, we can also try this: libegl1-mesa-dev
32
+ libegl1 \
33
+ libgles2 \
34
  build-essential \
35
  libsndfile-dev \
36
  software-properties-common \
37
  && rm -rf /var/lib/apt/lists/*
38
+ RUN echo '{"file_format_version": "1.0.0", "ICD": {"library_path": "libEGL_nvidia.so.0"}}' >> /usr/share/glvnd/egl_vendor.d/10_nvidia.json
39
 
40
  RUN add-apt-repository ppa:flexiondotorg/nvtop && \
41
  apt-get upgrade -y && \
 
62
  # Set up the Conda environment
63
  ENV CONDA_AUTO_UPDATE_CONDA=false \
64
  PATH=$HOME/miniconda/bin:$PATH
 
65
  RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py313_25.5.1-0-Linux-x86_64.sh \
66
  && chmod +x ~/miniconda.sh \
67
  && ~/miniconda.sh -b -p ~/miniconda \