Skip to content

Commit

Permalink
add init_conda.sh update to py-rocket-base
Browse files Browse the repository at this point in the history
add init_conda.sh update to py-rocket-base
  • Loading branch information
eeholmes authored Feb 25, 2025
2 parents 656ef53 + 9ae2bb3 commit fede1fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ ENV REPO_DIR="/srv/repo" \
ARG R_VERSION_PULL="4.4.2"
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8

# Fix init_conda.sh so that it only runs if we are in Jupyter Lab and not RStudio
RUN echo 'if [[ ! -v RSTUDIO || ! -v R_HOME ]]; then \
. ${CONDA_DIR}/etc/profile.d/conda.sh; \
conda activate ${CONDA_ENV}; \
fi' > /etc/profile.d/init_conda.sh

# Add NB_USER to staff group (required for rocker script)
# Ensure the staff group exists first
Expand Down

0 comments on commit fede1fd

Please sign in to comment.