Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes authored Nov 13, 2024
1 parent abbda3d commit c64e06c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
FROM pangeo/base-notebook
# base image sets CONDA_ENV="notebook", NB_USER=jovyan

USER root

# Define environment variables
# DISPLAY Tell applications where to open desktop apps - this allows notebooks to pop open GUIs
ENV REPO_DIR="/srv/repo" \
CONDA_ENV="notebook" \
DISPLAY=":1.0" \
R_VERSION="4.4.1" \
R_DOCKERFILE="verse_${R_VERSION}" \
NB_USER="${NB_USER}"
R_VERSION="4.4.1"

COPY . ${REPO_DIR}
RUN chgrp -R staff ${REPO_DIR} && \
Expand All @@ -26,6 +24,7 @@ RUN mkdir -p /pyrocket_scripts && \
RUN usermod -a -G staff "${NB_USER}"

# Install R, RStudio via Rocker scripts
ENV R_DOCKERFILE="verse_${R_VERSION}"
RUN PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin && \
chmod +x ${REPO_DIR}/rocker.sh && \
${REPO_DIR}/rocker.sh
Expand Down

0 comments on commit c64e06c

Please sign in to comment.