Dockerfile21 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. FROM tomcat:9-jdk17-temurin-jammy
  2. RUN apt-get update && apt-get install -y sudo;
  3. ARG RKEY=https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc
  4. ARG GPGKEY=/etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
  5. RUN apt-get update && apt-get install -y \
  6. dirmngr \
  7. gnupg \
  8. apt-transport-https \
  9. ca-certificates \
  10. software-properties-common \
  11. && wget -qO- $RKEY | sudo tee -a $GPGKEY\
  12. && add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/"\
  13. && apt-get update --fix-missing\
  14. && apt-get install -y r-base \
  15. && apt-get install -y git \
  16. && apt-get install -y libcurl4-openssl-dev libxml2-dev libssl-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev libtiff5-dev git \
  17. && rm -rf /var/lib/apt/lists/*
  18. #run this as root!
  19. #RUN mkdir -p /home/labkey/R/site-library \
  20. # && export R_LIBS=/home/labkey/R/site-library \
  21. # && echo ${R_LIBS} \
  22. RUN R -e 'install.packages("devtools")' \
  23. && R -e 'install.packages("ggplot2")' \
  24. && R -e 'install.packages("Rlabkey")' \
  25. && R -e 'install.packages("ggsurvfit")' \
  26. && R -e 'install.packages("ggalluvial")' \
  27. && R -e 'install.packages("gridExtra")' \
  28. && R -e 'install.packages("comprehenr")' \
  29. && R -e 'install.packages("ggsci")' \
  30. && R -e 'install.packages("paletteer")' \
  31. && R -e 'install.packages("tidyverse")'\
  32. && R -e 'install.packages("swimplot")'\
  33. && R -e 'install.packages("gtsummary")'