-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
51 lines (48 loc) · 1.5 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
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu20.04
WORKDIR /workspace
# python, dependencies for mujoco-py (and in general useful for RL research),
# from https://github.com/openai/mujoco-py
RUN apt-get update -q \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3-pip \
build-essential \
patchelf \
libgl1-mesa-dev \
libgl1-mesa-glx \
libglew-dev \
libosmesa6-dev \
software-properties-common \
net-tools \
vim \
virtualenv \
wget \
xpra \
xserver-xorg-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
### NetHack dependencies
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
RUN apt-get update && apt-get install -yq \
bison \
build-essential \
ca-certificates \
cmake \
curl \
flex \
git \
gpg \
libbz2-dev \
ninja-build \
software-properties-common \
wget
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \
| gpg --dearmor - \
> /usr/share/keyrings/kitware-archive-keyring.gpg
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ bionic main' \
> /etc/apt/sources.list.d/kitware.list
RUN apt-get update && apt-get install -yq \
cmake \
kitware-archive-keyring
COPY . /workspace/
RUN pip3 install --upgrade pip setuptools wheel
RUN pip3 install -r requirements.txt