Skip to content

Commit

Permalink
Rearranging instructions in dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpalms committed Feb 19, 2024
1 parent e8dc33b commit 4fa011a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
5 changes: 3 additions & 2 deletions images/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
5 changes: 3 additions & 2 deletions images/ray_rllib/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
5 changes: 3 additions & 2 deletions images/sheeprl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
5 changes: 3 additions & 2 deletions images/stable-baselines/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
5 changes: 3 additions & 2 deletions images/stable-baselines3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

0 comments on commit 4fa011a

Please sign in to comment.