Skip to content

Commit 656ef53

Browse files
authored
Merge pull request #228 from nmfs-opensci/update-dockerfile
Update Dockerfile
2 parents b1925d4 + daf369f commit 656ef53

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

base-image/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ RUN echo "Creating ${NB_USER} user..." \
5050
# Note this is only read by shell, but not by the jupyter notebook - that relies
5151
# on us starting the correct `python` process, which we do by adding the notebook conda environment's
5252
# bin to PATH earlier ($NB_PYTHON_PREFIX/bin)
53-
RUN echo 'if [[ ! -v RSTUDIO || ! -v R_HOME ]]; then \
54-
. ${CONDA_DIR}/etc/profile.d/conda.sh; \
55-
conda activate ${CONDA_ENV}; \
56-
fi' > /etc/profile.d/init_conda.sh
53+
RUN echo ". ${CONDA_DIR}/etc/profile.d/conda.sh ; conda activate ${CONDA_ENV}" > /etc/profile.d/init_conda.sh
5754

5855
# Install basic apt packages
5956
RUN echo "Installing Apt-get packages..." \

0 commit comments

Comments
 (0)