Skip to content

Commit

Permalink
Install R-Package with version locks
Browse files Browse the repository at this point in the history
  • Loading branch information
dibryant committed Mar 28, 2024
1 parent 69920b4 commit bbfa5bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rstudio/c9s-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ COPY rsession.conf /etc/rstudio/rsession.conf
# package installation
RUN dnf install -y libsodium-devel.x86_64 libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" \
&& dnf clean all && rm -rf /var/cache/yum
RUN R -e "install.packages('Rcpp')"
ARG NEEDPACKAGE
RUN if [ -n "$NEEDPACKAGE" ]; then R -e "install.packages(c('tidyverse', 'tidymodels', 'plumber', 'vetiver', 'devtools'))" ; else echo "The variable NEEDPACKAGE not set -> skipping installation of extra R packages"; fi
RUN packageurl <- "https://cran.r-project.org/src/contrib/Archive/devtools/devtools_2.4.5.tar.gz"
install.packages(packageurl, repos=NULL, type="source")
RUN packageurl2 <- "https://cran.r-project.org/http://cran.r-project.org/src/contrib/Archive/Rcpp/Rcpp_1.0.12.tar.gz"
install.packages(packageurl2, repos=NULL, type="source")

# Install NGINX to proxy RStudio and pass probes check
# Install NGINX to proxy RStudio and pass probes check
ENV NGINX_VERSION=1.24 \
NGINX_SHORT_VER=124 \
NGINX_CONFIGURATION_PATH=${APP_ROOT}/etc/nginx.d \
Expand Down

0 comments on commit bbfa5bb

Please sign in to comment.