-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
86 lines (78 loc) · 2.05 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# FROM nvidia/cuda:10.2-base-ubuntu18.04
FROM ubuntu:18.04
LABEL maintainer "Eric Chen - ericrc@mit.edu"
SHELL ["/bin/bash", "-c"]
RUN apt-get update && apt-get install -y \
make \
cmake \
curl \
gcc \
git \
tmux \
htop \
nano \
python3.7 \
python3-pip \
libglu1-mesa-dev \
libgl1-mesa-dev \
libgl1-mesa-glx \
libosmesa6-dev \
xvfb \
ffmpeg \
curl \
patchelf \
libglfw3 \
libglfw3-dev \
zlib1g \
zlib1g-dev \
swig \
wget \
build-essential \
zlib1g-dev \
libsdl2-dev \
libjpeg-dev \
nasm \
tar \
libbz2-dev \
libgtk2.0-dev \
libfluidsynth-dev \
libgme-dev \
libopenal-dev \
libboost-all-dev \
timidity \
libwildmidi-dev \
unzip \
lsof \
libjpeg-turbo8-dev \
xorg-dev \
libx11-dev \
libxcursor-dev \
libxrandr-dev \
libxinerama-dev \
libxi-dev \
libxxf86vm-dev \
mesa-common-dev
RUN mkdir -p /root/.mujoco \
&& wget https://www.roboti.us/download/mujoco200_linux.zip -O mujoco.zip \
&& unzip mujoco.zip -d /root/.mujoco \
&& mv /root/.mujoco/mujoco200_linux /root/.mujoco/mujoco200 \
&& rm mujoco.zip
ENV LD_LIBRARY_PATH /root/.mujoco/mujoco200/bin:${LD_LIBRARY_PATH}
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib64:${LD_LIBRARY_PATH}
ENV PYTHONPATH /curiosity_baselines
COPY requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt && rm /tmp/requirements.txt
# --------------------
# Copy in retro roms
COPY ./rlpyt/envs/retro_roms /tmp/retro_roms
RUN python3 -m retro.import /tmp/retro_roms
RUN rm -r /tmp/retro_roms
COPY ./rlpyt/envs/gym-super-mario-bros /curiosity_baselines/rlpyt/envs/gym-super-mario-bros
WORKDIR /curiosity_baselines/rlpyt/envs/gym-super-mario-bros
RUN pip3 install -e .
COPY ./rlpyt/envs/pycolab /curiosity_baselines/rlpyt/envs/pycolab
WORKDIR /curiosity_baselines/rlpyt/envs/pycolab
RUN pip3 install -e .
COPY ./rlpyt/envs/mazeworld /curiosity_baselines/rlpyt/envs/mazeworld
WORKDIR /curiosity_baselines/rlpyt/envs/mazeworld
RUN pip3 install -e .