mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-18 15:32:56 +00:00
Remove environment variable XDG_CACHE_HOME (#2038)
- Fixes https://github.com/jupyter/docker-stacks/issues/2037
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
@@ -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}"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user