From bb57da89058399f2e1e8977f96e027e5c4c3bd41 Mon Sep 17 00:00:00 2001 From: yacchin1205 <968739+yacchin1205@users.noreply.github.com> Date: Wed, 19 Mar 2025 19:09:35 +0900 Subject: [PATCH] Separate jupyterhub and wheel builder stages --- images/jupyterhub/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/jupyterhub/Dockerfile b/images/jupyterhub/Dockerfile index ef17b8e..b425291 100644 --- a/images/jupyterhub/Dockerfile +++ b/images/jupyterhub/Dockerfile @@ -41,8 +41,8 @@ RUN apt-get update && apt-get install -y acl && apt-get autoclean && apt-get cle RUN python3 -m pip install --no-cache --upgrade setuptools pip # install the wheels from first stage -COPY --from=builder /tmp/wheelhouse /tmp/wheelhouse -RUN python3 -m pip install --no-cache /tmp/wheelhouse/* +RUN --mount=type=cache,from=builder,source=/tmp/wheelhouse,target=/tmp/wheelhouse \ + python3 -m pip install --no-cache /tmp/wheelhouse/* ADD cull_idle_servers.py /usr/local/bin/cull_idle_servers.py ADD add_user.py /usr/local/bin/add_user.py