Repository navigation
Open
Description
data-science-stack/data-science-stack.Dockerfile
Lines 42 to 58 in 617900a
| RUN curl https://repo.anaconda.com/miniconda/Miniconda3-py37_${CONDA_VERSION}-Linux-x86_64.sh -k -o /miniconda.sh \ | |
| && sh /miniconda.sh -b -p ${CONDA_ROOT} \ | |
| && rm -f /miniconda.sh \ | |
| && echo "conda ${CONDA_VERSION}" >> /conda/conda-meta/pinned \ | |
| && ${CONDA_ROOT}/bin/conda init bash \ | |
| && echo "#!/bin/bash\n\ | |
| source /conda/bin/activate data-science-stack-${STACK_VERSION}\n\ | |
| jupyter-lab --allow-root --ip=0.0.0.0 --no-browser --NotebookApp.token='' --notebook-dir=${NOTEBOOKS_DIR}" > /run-jupyter \ | |
| && chmod 755 /run-jupyter \ | |
| && mkdir -p ${NOTEBOOKS_DIR} \ | |
| && cd ${NOTEBOOKS_DIR} \ | |
| && git clone --single-branch --depth 1 --branch branch-${RAPIDS_VERSION} \ | |
| https://github.com/rapidsai/notebooks.git \ | |
| && cd notebooks \ | |
| && git submodule update --init --remote \ | |
| && rm -rf .git \ | |
| && rm -rf `find repos/ -maxdepth 2 -mindepth 2 | grep -v notebooks` |
these lines can be replaced by a RUN data-science-stack install install-miniconda and install-notebooks
this will reduce code duplication and the number of places versions need to be updated
Metadata
Metadata
Assignees
Labels
No labels
Activity