File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 7
7
# This stage is building Python wheels for use in later stages by using a base
8
8
# image that has more pre-requisites to do so, such as a C++ compiler.
9
9
#
10
+ # NOTE: If the image version is updated, also update it in ci/refreeze and
11
+ # singleuser-sample's Dockerfile!
12
+ #
10
13
FROM python:3.11-bullseye as build-stage
11
14
12
15
# Build wheels
13
16
#
14
17
# We set pip's cache directory and expose it across build stages via an
15
- # ephemeral docker cache (--mount=type=cache,target=${PIP_CACHE_DIR}).
18
+ # ephemeral docker cache (--mount=type=cache,target=${PIP_CACHE_DIR}). We use
19
+ # the same technique for the directory /tmp/wheels.
16
20
#
17
21
COPY requirements.txt requirements.txt
18
22
ARG PIP_CACHE_DIR=/tmp/pip-cache
@@ -56,7 +60,7 @@ RUN apt-get update \
56
60
tini \
57
61
&& rm -rf /var/lib/apt/lists/*
58
62
59
- # install wheels built in the build- stage
63
+ # install wheels built in the build stage
60
64
COPY requirements.txt /tmp/requirements.txt
61
65
ARG PIP_CACHE_DIR=/tmp/pip-cache
62
66
RUN --mount=type=cache,target=${PIP_CACHE_DIR} \
Original file line number Diff line number Diff line change 7
7
# This stage is building Python wheels for use in later stages by using a base
8
8
# image that has more pre-requisites to do so, such as a C++ compiler.
9
9
#
10
+ # NOTE: If the image version is updated, also update it in ci/refreeze and
11
+ # hub's Dockerfile!
12
+ #
10
13
FROM python:3.11-bullseye as build-stage
11
14
12
15
# Build wheels
13
16
#
14
17
# We set pip's cache directory and expose it across build stages via an
15
- # ephemeral docker cache (--mount=type=cache,target=${PIP_CACHE_DIR}).
18
+ # ephemeral docker cache (--mount=type=cache,target=${PIP_CACHE_DIR}). We use
19
+ # the same technique for the directory /tmp/wheels.
16
20
#
17
21
COPY requirements.txt requirements.txt
18
22
ARG PIP_CACHE_DIR=/tmp/pip-cache
You can’t perform that action at this time.
0 commit comments