|
1 | 1 | ARG CLOUDHARNESS_BASE |
2 | 2 | FROM $CLOUDHARNESS_BASE as base |
3 | 3 |
|
4 | | -FROM jupyterhub/k8s-hub:1.1.3 |
| 4 | +FROM quay.io/jupyterhub/k8s-hub:3.2.1 |
5 | 5 | USER root |
6 | 6 |
|
7 | 7 |
|
8 | 8 | COPY --from=base libraries/models/requirements.txt /libraries/models/requirements.txt |
9 | | -RUN pip install -r /libraries/models/requirements.txt |
| 9 | +RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\ |
| 10 | + pip install -r /libraries/models/requirements.txt |
10 | 11 | COPY --from=base libraries/cloudharness-common/requirements.txt /libraries/cloudharness-common/requirements.txt |
11 | | -RUN pip install -r /libraries/cloudharness-common/requirements.txt |
| 12 | +RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\ |
| 13 | + pip install -r /libraries/cloudharness-common/requirements.txt |
12 | 14 | COPY --from=base libraries/client/cloudharness_cli/requirements.txt /libraries/client/cloudharness_cli/requirements.txt |
13 | | -RUN pip install -r /libraries/client/cloudharness_cli/requirements.txt |
| 15 | +RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\ |
| 16 | + pip install -r /libraries/client/cloudharness_cli/requirements.txt |
14 | 17 |
|
15 | 18 | COPY --from=base libraries/models /libraries/models |
16 | | -RUN pip install -e /libraries/models |
| 19 | +RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\ |
| 20 | + pip install -e /libraries/models |
17 | 21 |
|
18 | 22 | COPY --from=base libraries/cloudharness-common /libraries/cloudharness-common |
19 | 23 | COPY --from=base libraries/client/cloudharness_cli /libraries/client/cloudharness_cli |
20 | 24 |
|
21 | 25 | # |
22 | 26 |
|
23 | | -RUN pip install -e /libraries/cloudharness-common |
24 | | -RUN pip install -e /libraries/client/cloudharness_cli |
| 27 | +RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\ |
| 28 | + pip install -e /libraries/cloudharness-common |
| 29 | +RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\ |
| 30 | + pip install -e /libraries/client/cloudharness_cli |
25 | 31 |
|
26 | 32 |
|
27 | 33 | COPY src src |
28 | | -RUN pip install ./src/harness_jupyter |
29 | | -RUN pip install ./src/chauthenticator |
| 34 | +RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\ |
| 35 | + pip install ./src/harness_jupyter |
| 36 | +RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\ |
| 37 | + pip install ./src/chauthenticator |
30 | 38 |
|
31 | 39 | USER jovyan |
0 commit comments