Skip to content

Commit c97b985

Browse files
committed
Avoid creating a pip cache dir in Dockerfiles.
1 parent 3b52c37 commit c97b985

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

ML-Frameworks/pytorch-aarch64/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ WORKDIR /home/$DOCKER_USER
4343
ENV PATH="/home/$DOCKER_USER/.local/bin:${PATH}"
4444

4545
# Install uv for quicker package installations (installed to ~/.local/bin with --user)
46-
RUN python -m pip install --user uv==0.9.29
46+
ENV UV_NO_CACHE=1
47+
RUN python -m pip install --no-cache-dir --user uv==0.9.29
4748

4849
# Create virtual environment with uv
4950
RUN uv venv /home/$DOCKER_USER/.venv

ML-Frameworks/tensorflow-aarch64/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ WORKDIR /home/$DOCKER_USER
3838
ENV PATH="/home/$DOCKER_USER/.local/bin:${PATH}"
3939

4040
# Install uv for quicker package installations (installed to ~/.local/bin with --user)
41-
RUN python -m pip install --user uv==0.9.29
41+
ENV UV_NO_CACHE=1
42+
RUN python -m pip install --no-cache-dir --user uv==0.9.29
4243

4344
# Create virtual environment with uv
4445
RUN uv venv /home/$DOCKER_USER/.venv

0 commit comments

Comments
 (0)