Remove environment variable XDG_CACHE_HOME (#2038)

- Fixes https://github.com/jupyter/docker-stacks/issues/2037
This commit is contained in:
Olivier Benz
2023-11-22 17:10:52 +01:00
committed by GitHub
parent 406e397d43
commit baa110d3f9
2 changed files with 0 additions and 6 deletions

View File

@@ -121,9 +121,6 @@ if [ "$(id -u)" == 0 ]; then
done done
fi fi
# Update potentially outdated environment variables since the image build
export XDG_CACHE_HOME="/home/${NB_USER}/.cache"
# Prepend ${CONDA_DIR}/bin to sudo secure_path # Prepend ${CONDA_DIR}/bin to sudo secure_path
sed -r "s#Defaults\s+secure_path\s*=\s*\"?([^\"]+)\"?#Defaults secure_path=\"${CONDA_DIR}/bin:\1\"#" /etc/sudoers | grep secure_path > /etc/sudoers.d/path sed -r "s#Defaults\s+secure_path\s*=\s*\"?([^\"]+)\"?#Defaults secure_path=\"${CONDA_DIR}/bin:\1\"#" /etc/sudoers | grep secure_path > /etc/sudoers.d/path

View File

@@ -74,9 +74,6 @@ RUN git clone https://github.com/PAIR-code/facets && \
fix-permissions "${CONDA_DIR}" && \ fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}" fix-permissions "/home/${NB_USER}"
# Import matplotlib the first time to build the font cache.
ENV XDG_CACHE_HOME="/home/${NB_USER}/.cache/"
RUN MPLBACKEND=Agg python -c "import matplotlib.pyplot" && \ RUN MPLBACKEND=Agg python -c "import matplotlib.pyplot" && \
fix-permissions "/home/${NB_USER}" fix-permissions "/home/${NB_USER}"