forked from opendilab/DI-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.env
52 lines (36 loc) · 1.72 KB
/
Dockerfile.env
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
FROM opendilab/ding:nightly as atari
WORKDIR /ding
RUN python3 -m pip install --upgrade pip \
&& python3 -m pip install --no-cache-dir .[common_env] \
&& pip install autorom \
&& AutoROM --accept-license
FROM opendilab/ding:nightly as mujoco
WORKDIR /ding
RUN python3 -m pip install --upgrade pip \
&& curl https://www.roboti.us/file/mjkey.txt -o mjkey.txt && curl https://www.roboti.us/download/mujoco200_linux.zip -o mujoco200_linux.zip \
&& apt-get install unzip libgl1-mesa-dev libosmesa6-dev -y && unzip mujoco200_linux.zip && mv mujoco200_linux mujoco200 \
&& echo "export MUJOCO_PY_MJKEY_PATH=/ding/mjkey.txt && export MUJOCO_PY_MUJOCO_PATH=/ding/mujoco200 && export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ding/mujoco200/bin" >> /root/.bashrc \
&& . /root/.bashrc \
&& pip3 install 'numpy==1.22.0' \
&& pip3 install -U 'mujoco-py<2.1,>=2.0' --user
ENV MUJOCO_PY_MJKEY_PATH=/ding/mjkey.txt
ENV MUJOCO_PY_MUJOCO_PATH=/ding/mujoco200
ENV LD_LIBRARY_PATH "$LD_LIBRARY_PATH:/ding/mujoco200/bin"
FROM opendilab/di-star:latest as smac
WORKDIR /ding
ADD setup.py setup.py
ADD dizoo dizoo
ADD ding ding
RUN python3 -m pip install --upgrade pip \
&& python3 -m pip install --no-cache-dir .[fast]
ENV SC2PATH=/root/StarCraftII_4.10.0
FROM opendilab/ding:nightly as grf
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /ding
RUN apt-get update && apt-get install git cmake build-essential libgl1-mesa-dev libsdl2-dev \
libsdl2-image-dev libsdl2-ttf-dev libsdl2-gfx-dev libboost-all-dev \
libdirectfb-dev libst-dev mesa-utils xvfb x11vnc -y \
&& apt clean \
&& rm -rf /var/cache/apt/*
RUN python3 -m pip install --upgrade pip setuptools psutil wheel \
&& python3 -m pip install --no-cache-dir gfootball