Created
September 4, 2017 12:25
-
-
Save FirefoxMetzger/3abb9ea3a2924d8006cc4b4a71963917 to your computer and use it in GitHub Desktop.
Dockerfile for openAI gym with added dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A Dockerfile that sets up a full Gym install | |
FROM ubuntu:14.04 | |
RUN apt-get update \ | |
&& apt-get install -y libav-tools \ | |
python-numpy \ | |
python-scipy \ | |
python-pyglet \ | |
python-setuptools \ | |
libpq-dev \ | |
libjpeg-dev \ | |
curl \ | |
cmake \ | |
swig \ | |
freeglut3 \ | |
python-opengl \ | |
libboost-all-dev \ | |
libglu1-mesa \ | |
libglu1-mesa-dev \ | |
libsdl2-2.0-0\ | |
libgles2-mesa-dev \ | |
libsdl2-dev \ | |
wget \ | |
unzip \ | |
git \ | |
xserver-xorg-input-void \ | |
xserver-xorg-video-dummy \ | |
python-gtkglext1 \ | |
xpra \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& easy_install pip | |
WORKDIR /usr/local/gym | |
RUN mkdir -p gym && touch gym/__init__.py | |
COPY ./gym/version.py ./gym | |
COPY ./requirements.txt . | |
COPY ./setup.py . | |
RUN pip install -e .[all] | |
# Finally, upload our actual code! | |
COPY . /usr/local/gym | |
WORKDIR /root | |
ENTRYPOINT ["/usr/local/gym/bin/docker_entrypoint"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment