forked from Farama-Foundation/Gymnasium-Robotics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
py.Dockerfile
27 lines (19 loc) · 1.05 KB
/
py.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
# A Dockerfile that sets up a full gymnasium-robotics install with test dependencies
ARG PYTHON_VERSION
FROM python:$PYTHON_VERSION
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get -y update && apt-get install -y unzip libglu1-mesa-dev libgl1-mesa-dev libosmesa6-dev xvfb patchelf ffmpeg cmake swig
# Download mujoco
RUN mkdir /root/.mujoco \
&& cd /root/.mujoco \
&& wget -qO- 'https://github.com/deepmind/mujoco/releases/download/2.1.0/mujoco210-linux-x86_64.tar.gz' | tar -xzvf -
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/root/.mujoco/mujoco210/bin"
# Build mujoco-py from source. Pypi installs wheel packages and Cython won't recompile old file versions in the Github Actions CI.
# Thus generating the following error https://github.com/cython/cython/pull/4428
RUN git clone https://github.com/openai/mujoco-py.git\
&& cd mujoco-py \
&& pip install -e .
COPY . /usr/local/gymnasium-robotics/
WORKDIR /usr/local/gymnasium-robotics/
RUN pip install .[testing] --no-cache-dir
ENTRYPOINT ["/usr/local/gymnasium-robotics/bin/docker_entrypoint"]