From 9d5aa32ccebf0372c2ee282524dc805482ac23fe Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Wed, 9 Oct 2024 15:29:52 -0700 Subject: [PATCH] Add a devcontainer --- .devcontainer/Dockerfile | 15 +++++++++++++++ .devcontainer/devcontainer.json | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..9b8007f --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,15 @@ +FROM rocker/r-base + +RUN apt-get -qq update && \ + apt-get install -y --no-install-recommends git + +COPY DESCRIPTION . + +RUN Rscript -e ' \ + install.packages("remotes"); \ + remotes::install_deps(dependencies = c( \ + "Depends", \ + "Imports", \ + "Config/needs/development" \ + )) \ +' diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..b30eaba --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,3 @@ +{ + "build": { "dockerfile": "Dockerfile", "context": ".."} +}