File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ RUN apt-get update && \
53
53
tini \
54
54
&& rm -rf /var/lib/apt/lists/*
55
55
56
- # set env for pip cache,
57
- # but use ARG to avoid persisting in image
56
+ # set pip's cache directory using this environment variable, and use
57
+ # ARG instead of ENV to ensure its only set when the image is built
58
58
ARG PIP_CACHE_DIR=/tmp/pip-cache
59
59
60
60
# install wheels built in the build-stage
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ FROM python:3.9-bullseye as build-stage
7
7
8
8
WORKDIR /build-stage
9
9
10
- # set env for pip cache,
11
- # but use ARG to avoid persisting in image
10
+ # set pip's cache directory using this environment variable, and use
11
+ # ARG instead of ENV to ensure its only set when the image is built
12
12
ARG PIP_CACHE_DIR=/tmp/pip-cache
13
13
14
14
# These are mounted into the final image for installation
You can’t perform that action at this time.
0 commit comments