Use mamba to install jupyter-server-proxy (#2262)

* Use mamba to install jupyter-server-proxy

* Update changelog
This commit is contained in:
Ayaz Salikhov
2025-03-23 13:59:59 +00:00
committed by GitHub
parent b3669ac716
commit 33d3b308c4
4 changed files with 19 additions and 2 deletions

View File

@@ -3,6 +3,12 @@
This changelog only contains breaking and/or significant changes manually introduced to this repository (using Pull Requests).
All image manifests can be found in [the wiki](https://github.com/jupyter/docker-stacks/wiki).
## 2025-03-23
Affected: `tensorflow-notebook`.
- **Non-breaking:** `tensorflow-notebook`: Use mamba to install jupyter-server-proxy ([#2262](https://github.com/jupyter/docker-stacks/pull/2262)).
## 2025-03-22
Affected: all images.

View File

@@ -11,10 +11,15 @@ LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN mamba install --yes \
'jupyter-server-proxy' && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
# Install tensorflow with pip, on x86_64 tensorflow-cpu
RUN [[ $(uname -m) = x86_64 ]] && TF_POSTFIX="-cpu" || TF_POSTFIX="" && \
pip install --no-cache-dir \
"jupyter-server-proxy" \
"tensorflow${TF_POSTFIX}" && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

View File

@@ -11,9 +11,14 @@ LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN mamba install --yes \
'jupyter-server-proxy' && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
# Install TensorFlow, CUDA and cuDNN with pip
RUN pip install --no-cache-dir \
"jupyter-server-proxy" \
"tensorflow[and-cuda]<=2.17.1" && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

View File

@@ -54,6 +54,7 @@ EXCLUDED_PACKAGES = [
"grpcio-status",
"grpcio",
"hdf5",
"jupyter-server-proxy",
"jupyterhub-singleuser",
"jupyterlab-git",
"mamba",