mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-20 22:12:03 +00:00
* added ffmpeg to dockerfile and fixed test
* use ubuntu media repo for ffmpeg
* ffmpeg on travis 🍰
* install libav instead
45 lines
1.1 KiB
Docker
45 lines
1.1 KiB
Docker
# A Dockerfile that sets up a full Gym install
|
|
FROM quay.io/openai/gym:base
|
|
|
|
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 \
|
|
python-opengl \
|
|
libboost-all-dev \
|
|
libsdl2-dev \
|
|
wget \
|
|
unzip \
|
|
git \
|
|
xpra \
|
|
libav-tools \
|
|
python3-dev \
|
|
&& 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 ./
|
|
COPY ./tox.ini ./
|
|
|
|
RUN pip install tox
|
|
# Install the relevant dependencies. Keep printing so Travis knows we're alive.
|
|
RUN ["bash", "-c", "( while true; do echo '.'; sleep 60; done ) & tox --notest"]
|
|
|
|
# Finally, clean cached code (including dot files) and upload our actual code!
|
|
RUN mv .tox /tmp/.tox && rm -rf .??* * && mv /tmp/.tox .tox
|
|
COPY . /usr/local/gym/
|
|
|
|
ENTRYPOINT ["/usr/local/gym/bin/docker_entrypoint"]
|
|
CMD ["tox"]
|