mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 15:02:57 +00:00
Use mamba instead of conda where possible
This commit is contained in:
@@ -12,5 +12,5 @@ USER root
|
||||
USER ${NB_UID}
|
||||
|
||||
# Switch back to jovyan to avoid accidental container runs as root
|
||||
# Add permanent pip/conda installs, data files, other user libs here
|
||||
# Add permanent mamba/pip/conda installs, data files, other user libs here
|
||||
# e.g., RUN pip install --quiet --no-cache-dir flake8
|
||||
|
@@ -12,5 +12,5 @@ USER root
|
||||
USER ${NB_UID}
|
||||
|
||||
# Switch back to jovyan to avoid accidental container runs as root
|
||||
# Add permanent pip/conda installs, data files, other user libs here
|
||||
# Add permanent mamba/pip/conda installs, data files, other user libs here
|
||||
# e.g., RUN pip install --quiet --no-cache-dir flake8
|
||||
|
@@ -99,8 +99,8 @@ The next steps are:
|
||||
|
||||
```bash
|
||||
if [ -f "/home/${NB_USER}/environment.yml" ]; then
|
||||
conda env update --name root --file "/home/${NB_USER}/environment.yml"
|
||||
conda clean --all -f -y
|
||||
mamba env update --name root --file "/home/${NB_USER}/environment.yml"
|
||||
mamba clean --all -f -y
|
||||
else
|
||||
if [ -f "/home/${NB_USER}/requirements.txt" ]; then
|
||||
pip --no-cache-dir install -r "/home/${NB_USER}/requirements.txt"
|
||||
|
@@ -25,8 +25,8 @@ rm -rf /tmp/src
|
||||
# use 'pip' instead.
|
||||
|
||||
if [ -f "/home/${NB_USER}/environment.yml" ]; then
|
||||
conda env update --name root --file "/home/${NB_USER}/environment.yml"
|
||||
conda clean --all -f -y
|
||||
mamba env update --name root --file "/home/${NB_USER}/environment.yml"
|
||||
mamba clean --all -f -y
|
||||
else
|
||||
if [ -f "/home/${NB_USER}/requirements.txt" ]; then
|
||||
pip --no-cache-dir install -r "/home/${NB_USER}/requirements.txt"
|
||||
|
Reference in New Issue
Block a user