Files
Gymnasium/bin/necessary-py.Dockerfile

28 lines
707 B
Docker
Raw Permalink Normal View History

2022-09-08 10:58:14 +01:00
# A Dockerfile that sets up a full Gymnasium install with test dependencies
ARG PYTHON_VERSION
FROM python:$PYTHON_VERSION
2022-07-06 23:49:28 +10:00
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2022-07-06 23:49:28 +10:00
RUN apt-get -y update \
&& apt-get install --no-install-recommends -y \
unzip \
libglu1-mesa-dev \
libgl1-mesa-dev \
libosmesa6-dev \
xvfb \
patchelf \
ffmpeg cmake \
&& apt-get autoremove -y \
&& apt-get clean \
2022-12-01 12:18:01 +00:00
&& rm -rf /var/lib/apt/lists/*
2022-09-08 10:19:10 +01:00
COPY . /usr/local/gymnasium/
WORKDIR /usr/local/gymnasium/
RUN pip install uv
RUN uv pip install --system --upgrade "numpy>=1.21,<2.0"
RUN uv pip install --system .[testing] --no-cache-dir
2019-05-10 16:07:48 -07:00
2022-09-08 10:19:10 +01:00
ENTRYPOINT ["/usr/local/gymnasium/bin/docker_entrypoint"]