From 4fa011ab195edd6734a939c923b574da72eb1388 Mon Sep 17 00:00:00 2001 From: Alessandro Palmas Date: Mon, 19 Feb 2024 16:17:02 -0500 Subject: [PATCH] Rearranging instructions in dockerfiles --- images/base/Dockerfile | 5 +++-- images/ray_rllib/Dockerfile | 5 +++-- images/sheeprl/Dockerfile | 5 +++-- images/stable-baselines/Dockerfile | 5 +++-- images/stable-baselines3/Dockerfile | 5 +++-- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/images/base/Dockerfile b/images/base/Dockerfile index 911e337..70415c2 100644 --- a/images/base/Dockerfile +++ b/images/base/Dockerfile @@ -7,7 +7,8 @@ RUN apt-get -qy update && \ apt-get -qy clean ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 -ENV HF_HOME=/tmp + +RUN pip install huggingface_hub # Copy arena to tmp since bind-mount is read-only and pip doesn't support # out-of-tree builds. @@ -16,4 +17,4 @@ RUN --mount=target=/usr/src/arena,type=bind,source=. \ pip install /tmp/arena && \ rm -rf /tmp/arena -RUN pip install huggingface_hub +ENV HF_HOME=/tmp diff --git a/images/ray_rllib/Dockerfile b/images/ray_rllib/Dockerfile index 150495b..cc3e66f 100644 --- a/images/ray_rllib/Dockerfile +++ b/images/ray_rllib/Dockerfile @@ -7,7 +7,8 @@ RUN apt-get -qy update && \ apt-get -qy clean ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 HOME=/tmp -ENV HF_HOME=/tmp + +RUN pip install huggingface_hub # Copy arena to tmp since bind-mount is read-only and pip doesn't support # out-of-tree builds. @@ -16,4 +17,4 @@ RUN --mount=target=/usr/src/arena,type=bind,source=. \ pip install /tmp/arena[ray-rllib] && \ rm -rf /tmp/arena -RUN pip install huggingface_hub +ENV HF_HOME=/tmp diff --git a/images/sheeprl/Dockerfile b/images/sheeprl/Dockerfile index d5ca75f..7641987 100644 --- a/images/sheeprl/Dockerfile +++ b/images/sheeprl/Dockerfile @@ -7,7 +7,8 @@ RUN apt-get -qy update && \ apt-get -qy clean ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 -ENV HF_HOME=/tmp + +RUN pip install huggingface_hub # Copy arena to tmp since bind-mount is read-only and pip doesn't support # out-of-tree builds. @@ -16,4 +17,4 @@ RUN --mount=target=/usr/src/arena,type=bind,source=. \ pip install /tmp/arena[sheeprl] && \ rm -rf /tmp/arena -RUN pip install huggingface_hub +ENV HF_HOME=/tmp diff --git a/images/stable-baselines/Dockerfile b/images/stable-baselines/Dockerfile index 0852752..09fe03a 100644 --- a/images/stable-baselines/Dockerfile +++ b/images/stable-baselines/Dockerfile @@ -7,7 +7,8 @@ RUN apt-get -qy update && \ apt-get -qy clean ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 -ENV HF_HOME=/tmp + +RUN pip install huggingface_hub # Copy arena to tmp since bind-mount is read-only and pip doesn't support # out-of-tree builds. @@ -20,4 +21,4 @@ RUN --mount=target=/usr/src/arena,type=bind,source=. \ pip install tensorflow==1.15.0 && \ rm -rf /tmp/arena -RUN pip install huggingface_hub +ENV HF_HOME=/tmp diff --git a/images/stable-baselines3/Dockerfile b/images/stable-baselines3/Dockerfile index 4b85b64..936625d 100644 --- a/images/stable-baselines3/Dockerfile +++ b/images/stable-baselines3/Dockerfile @@ -7,7 +7,8 @@ RUN apt-get -qy update && \ apt-get -qy clean ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 -ENV HF_HOME=/tmp + +RUN pip install huggingface_hub # Copy arena to tmp since bind-mount is read-only and pip doesn't support # out-of-tree builds. @@ -16,4 +17,4 @@ RUN --mount=target=/usr/src/arena,type=bind,source=. \ pip install /tmp/arena[stable-baselines3] && \ rm -rf /tmp/arena -RUN pip install huggingface_hub +ENV HF_HOME=/tmp