File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,19 +57,19 @@ RUN useradd \
5757 --groups users \
5858 --home /home/$USER \
5959 $USER
60- RUN cp ~/.bashrc /home/$USER/.bashrc; chown $USER /home/$USER/.bashrc
60+ # RUN cp ~/.bashrc /home/$USER/.bashrc; chown $USER /home/$USER/.bashrc
6161RUN chown -R $USER /src/$USER
6262
6363WORKDIR /home/$USER
6464ENV HOME="/home/capcalc"
6565
66- # initialize user mamba
67- RUN /opt/miniforge3/bin/mamba shell
68- RUN echo "mamba activate science" >> /home/capcalc/.bashrc
69-
7066# set to non-root user
7167USER capcalc
7268
69+ # initialize user mamba
70+ RUN /opt/miniforge3/bin/mamba shell init --shell bash
71+ RUN echo "mamba activate science" >> /home/capcalc/.bashrc
72+
7373# set up variable for non-interactive shell
7474ENV PATH=/opt/miniforge3/envs/science/bin:/opt/miniforge3/condabin:.:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
7575
You can’t perform that action at this time.
0 commit comments