Skip to content

Commit

Permalink
add dockerfile examples
Browse files Browse the repository at this point in the history
  • Loading branch information
DyfanJones committed Jul 20, 2023
1 parent 8fc86bb commit 4c3f3fa
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docker/rocker-r-base/dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
11 changes: 11 additions & 0 deletions docker/rocker-r2u/dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 4c3f3fa

Please sign in to comment.