Permalink
74229c8 May 14, 2018
2 contributors

Users who have contributed to this file

@gdb @pzhokhov
43 lines (38 sloc) 882 Bytes
# A Dockerfile that sets up a full Gym install
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get install -y libav-tools \
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"]