From 77932c06890ebb31d490fbe7bc1083f2e57b18ae Mon Sep 17 00:00:00 2001 From: thomasyu888 Date: Thu, 23 Feb 2023 19:39:12 -0800 Subject: [PATCH 1/2] Update dockerfile --- Dockerfile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73b41b79..99e19067 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,12 @@ -FROM r-base -RUN rm /etc/apt/apt.conf.d/default -RUN apt-get update -y -RUN apt-get install -y dpkg-dev zlib1g-dev libssl-dev libffi-dev -RUN apt-get install -y curl libcurl4-openssl-dev +FROM rocker/r-base:4.2.2 + +RUN apt-get update && \ + apt-get -y install libpng-dev \ + python3 \ + python3-dev \ + python3-pip \ + python3-venv && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + RUN R -e "install.packages('synapser', repos=c('http://ran.synapse.org', 'http://cran.fhcrc.org'))" From 1dba878f58f6f7eab11b4ed80f44a6222e42729d Mon Sep 17 00:00:00 2001 From: thomasyu888 Date: Thu, 23 Feb 2023 19:39:55 -0800 Subject: [PATCH 2/2] Add in rstudio dockerfile --- Dockerfile.rstudio | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile.rstudio diff --git a/Dockerfile.rstudio b/Dockerfile.rstudio new file mode 100644 index 00000000..cbfb9cac --- /dev/null +++ b/Dockerfile.rstudio @@ -0,0 +1,18 @@ +# This builds the rstudio docker image +FROM rocker/rstudio:4.2.2 + +RUN apt-get update && \ + apt-get -y install libpng-dev \ + python3 \ + python3-dev \ + python3-pip \ + python3-venv && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +# Must install synapser as rstudio since we are relying on +# the rstudio user to login +USER rstudio +RUN R -e "install.packages('synapser', repos=c('http://ran.synapse.org', 'http://cran.fhcrc.org'))" +# when starting the container, it must run as root +USER root