File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ FROM fredericklab/basecontainer:latest-release
55ARG BUILD_TIME
66ARG BRANCH
77ARG GITVERSION
8+ ARG GITDIRECTVERSION
89ARG GITSHA
910ARG GITDATE
1011
@@ -14,12 +15,14 @@ ENV BRANCH=$BRANCH
1415ENV GITVERSION=${GITVERSION}
1516ENV GITSHA=${GITSHA}
1617ENV GITDATE=${GITDATE}
18+ ENV GITDIRECTVERSION=${GITDIRECTVERSION}
1719
1820RUN echo "BRANCH: " $BRANCH
1921RUN echo "BUILD_TIME: " $BUILD_TIME
2022RUN echo "GITVERSION: " $GITVERSION
2123RUN echo "GITSHA: " $GITSHA
2224RUN echo "GITDATE: " $GITDATE
25+ RUN echo "GITDIRECTVERSION: " $GITDIRECTVERSION
2326
2427# Installing precomputed python packages
2528RUN uv pip install pillow
@@ -51,19 +54,24 @@ RUN useradd \
5154 --groups users \
5255 --home /home/$USER \
5356 $USER
57+ RUN chown -R $USER /src/$USER
5458RUN cp ~/.bashrc /home/$USER/.bashrc; chown $USER /home/$USER/.bashrc
5559
5660WORKDIR /home/$USER
57- ENV HOME="/home/$USER "
61+ ENV HOME="/home/picachooser "
5862
5963ENV IN_DOCKER_CONTAINER=1
6064
6165RUN ldconfig
6266WORKDIR /tmp/
6367
6468# set to non-root user and initialize mamba
65- USER $USER
6669RUN /opt/miniforge3/bin/mamba init
70+ RUN echo "mamba activate science" >> /home/rapidtide/.bashrc
71+ RUN echo "/opt/miniforge3/bin/mamba activate science" >> /home/rapidtide/.bashrc
72+
73+ # switch to the picachooser user
74+ USER picachooser
6775
6876ENTRYPOINT ["/opt/miniforge3/envs/science/bin/PICAchooser_dispatcher" ]
6977
You can’t perform that action at this time.
0 commit comments