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 @@ -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
# Build wheels
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ RUN apt-get update \
48
48
git \
49
49
&& rm -rf /var/lib/apt/lists/*
50
50
51
- # set env for pip cache,
52
- # but use ARG to avoid persisting in image
51
+ # set pip's cache directory using this environment variable, and use
52
+ # ARG instead of ENV to ensure its only set when the image is built
53
53
ARG PIP_CACHE_DIR=/tmp/pip-cache
54
54
55
55
# install wheels built in the build-stage
You can’t perform that action at this time.
0 commit comments