-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (43 loc) · 1.1 KB
/
Dockerfile
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
52
53
# syntax=docker/dockerfile:1
# docker build -t robosuite .
# FROM nvidia/cudagl:11.4.0-base-ubuntu20.04
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu20.04
WORKDIR /srv
# https://askubuntu.com/a/1013396
ARG DEBIAN_FRONTEND=noninteractive
# TODO: make it work with egl rendering backend
ENV MUJOCO_GL=glx
# ENV MUJOCO_GL=egl
RUN apt-get update && apt-get install -y \
git \
ffmpeg \
libsm6 \
libxext6 \
python3 \
python3-pip \
python3-tk \
&& rm -rf /var/lib/apt/lists/*
COPY robosuite/requirements-extra.txt /srv/robosuite/requirements-extra.txt
RUN pip install --upgrade pip
RUN pip install -r /srv/robosuite/requirements-extra.txt
RUN pip install \
numpy \
scipy \
matplotlib \
mujoco \
pyrender \
ipdb \
opencv-python \
trimesh \
pyopengl \
omegaconf \
pygame \
torch \
ruamel.yaml
WORKDIR robosuite
COPY . /srv
RUN pip install -r requirements.txt
# CMD ["nvidia-smi"]
# CMD ["python3", "robosuite/demos/demo_renderers.py"]
# CMD ["python3", "robosuite/demos/demo_control.py"]
# CMD ["python3", "robosuite/demos/demo_random_action.py"]