From 4c3f3fa99463debabd946edab755ba63e9a25954 Mon Sep 17 00:00:00 2001 From: "dyfan.jones" Date: Thu, 20 Jul 2023 15:14:58 +0100 Subject: [PATCH] add dockerfile examples --- docker/rocker-r-base/dockerfile | 11 +++++++++++ docker/rocker-r2u/dockerfile | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 docker/rocker-r-base/dockerfile create mode 100644 docker/rocker-r2u/dockerfile diff --git a/docker/rocker-r-base/dockerfile b/docker/rocker-r-base/dockerfile new file mode 100644 index 000000000..d0ffc53d6 --- /dev/null +++ b/docker/rocker-r-base/dockerfile @@ -0,0 +1,11 @@ +FROM rocker/r-base + +RUN apt-get update +RUN apt-get install -y --no-install-recommends \ + libcurl4-openssl-dev \ + libssl-dev \ + libxml2-dev + +RUN Rscript -e "install.packages('paws', repos = c(pawsr = 'https://paws-r-builds.s3.amazonaws.com/packages/latest/', CRAN = 'https://cloud.r-project.org'))" + +CMD ["R"] \ No newline at end of file diff --git a/docker/rocker-r2u/dockerfile b/docker/rocker-r2u/dockerfile new file mode 100644 index 000000000..ec5a1e57c --- /dev/null +++ b/docker/rocker-r2u/dockerfile @@ -0,0 +1,11 @@ +FROM rocker/r2u:jammy + +RUN apt-get update +RUN apt-get install -y --no-install-recommends \ + libcurl4-openssl-dev \ + libssl-dev \ + libxml2-dev + +RUN Rscript -e "install.packages('paws')" + +CMD ["R"] \ No newline at end of file