Skip to content

Commit a7c0cd0

Browse files
committed
Update Dockerfile
1 parent 002f3bb commit a7c0cd0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
6161
RUN chown -R $USER /src/$USER
6262

6363
WORKDIR /home/$USER
6464
ENV 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
7167
USER 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
7474
ENV 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

0 commit comments

Comments
 (0)