From 0018149d366bc739c6710b22310ce85c072b1616 Mon Sep 17 00:00:00 2001 From: Gabe Richman Date: Tue, 12 Dec 2023 16:56:30 -0800 Subject: [PATCH] initial dockerfile commit. Untested. --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..28c5679 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM r-base:latest + +WORKDIR /usr/src/app + +# Install system dependencies +RUN apt-get update && apt-get install -y \ + git \ + libcurl4-gnutls-dev \ + libssl-dev \ + libxml2-dev + +# Install R packages +RUN Rscript -e "install.packages('remotes', dependencies=TRUE)" \ + && Rscript -e "remotes::install_github('federicogiorgi/corto')" + +# Test commands to validate installation +RUN Rscript -e "library(corto); data('inmat'); print(head(inmat))" + +CMD ["/bin/bash"]