Skip to content

Commit 145ec2a

Browse files
committed
chore: Also use uv in jupyterhub Dockerfile
1 parent 71886a0 commit 145ec2a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/docker_compose/Dockerfile-Hub

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ RUN apt-get update && \
66
apt-get clean && \
77
rm -rf /var/lib/apt/lists/*
88

9+
# Install uv
10+
COPY --from=ghcr.io/astral-sh/uv:0.9.3 /uv /uvx /bin/
11+
912
WORKDIR /app
1013

1114
ENV JUPYTERHUB_CRYPT_KEY=e3f92a0d5e37446c7e894a2ef6c6ec3bcb4aa3c38d2a442eb567adf780597aa0
1215

13-
RUN python3 -m pip install grader_labextension
14-
RUN python3 -m pip install dockerspawner oauthenticator
16+
RUN --mount=type=cache,target=/root/.cache/uv \
17+
uv pip install grader_labextension dockerspawner oauthenticator
1518

1619
CMD ["jupyterhub", "-f", "/app/jupyterhub_config.py"]

0 commit comments

Comments
 (0)