diff --git a/images/datascience-notebook/Dockerfile b/images/datascience-notebook/Dockerfile index f3499e17..c35b0eac 100644 --- a/images/datascience-notebook/Dockerfile +++ b/images/datascience-notebook/Dockerfile @@ -113,5 +113,6 @@ RUN conda clean -t -p -i -y # https://web.archive.org/web/20240404213219/https://groups.google.com/a/anaconda.com/g/anaconda/c/xV1BiGPmgao USER root RUN rm -rf /opt/conda/pkgs/ +USER jovyan WORKDIR /home/jovyan diff --git a/images/scipy-ml-notebook/Dockerfile b/images/scipy-ml-notebook/Dockerfile index 265f0702..47c6de15 100644 --- a/images/scipy-ml-notebook/Dockerfile +++ b/images/scipy-ml-notebook/Dockerfile @@ -112,5 +112,11 @@ RUN mkdir -p $CONDA_DIR/lib/nvvm/libdevice && \ RUN ln -s /opt/conda/lib/python3.11/site-packages/tensorrt_libs/libnvinfer_plugin.so.8 /opt/conda/lib/python3.11/site-packages/tensorrt_libs/libnvinfer_plugin.so.$TENSORRT_VERSION && \ ln -s /opt/conda/lib/python3.11/site-packages/tensorrt_libs/libnvinfer.so.8 /opt/conda/lib/python3.11/site-packages/tensorrt_libs/libnvinfer.so.$TENSORRT_VERSION +# Remove conda pkg cache (currently saves ~7GB) +# https://web.archive.org/web/20240404213219/https://groups.google.com/a/anaconda.com/g/anaconda/c/xV1BiGPmgao +USER root +RUN rm -rf /opt/conda/pkgs/ +USER jovyan + # Run datahub scripts RUN . /tmp/activate.sh