Commit 16e29a57 authored by Bengt Giger's avatar Bengt Giger
Browse files

Suppress error message if .bashrc does not exists

parent d3079a72
Pipeline #140017 passed with stages
in 6 minutes and 34 seconds
......@@ -25,9 +25,6 @@ RUN mamba install -c conda-forge \
jupyterlab-system-monitor jupyterlab-git \
uncertainties nbgrader pylatex biopython ete3 nbgitpuller
RUN echo 'export CONDA_ENVS_PATH=$HOME/.conda/envs' >> /etc/profile.d/conda_fix.sh && echo source $HOME/.bashrc >> /etc/profile.d/conda_fix.sh
RUN echo 'export CONDA_ENVS_PATH=$HOME/.conda/envs' >> /etc/profile.d/conda_fix.sh && echo 'if [ -f $HOME/.bashrc ]; then source $HOME/.bashrc; fi' >> /etc/profile.d/conda_fix.sh
USER 1000
# Doesn't work
# RUN echo 'export CONDA_ENVS_PATH=$HOME/.conda/envs' >> $HOME/.bashrc conda init bash && echo source $HOME/.bashrc >> $HOME/.bash_profile
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment