-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,32 @@ | ||
FROM r-base:4.3.2 | ||
|
||
ARG PROJECT_NAME | ||
EXPOSE 3838 | ||
|
||
ARG R_REMOTES_NO_ERRORS_FROM_WARNINGS=false | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y cmake | ||
|
||
RUN wget https://github.com/jgm/pandoc/releases/download/2.11.4/pandoc-2.11.4-1-amd64.deb \ | ||
&& dpkg -i pandoc-2.11.4-1-amd64.deb \ | ||
&& rm pandoc-2.11.4-1-amd64.deb | ||
|
||
&& apt-get install -y \ | ||
make \ | ||
cmake \ | ||
wget \ | ||
libcurl4-openssl-dev \ | ||
libssl-dev \ | ||
libxml2-dev \ | ||
libgsl-dev \ | ||
zlib1g-dev \ | ||
libfontconfig1-dev \ | ||
libfreetype6-dev \ | ||
libfribidi-dev \ | ||
libharfbuzz-dev \ | ||
libjpeg-dev \ | ||
libpng-dev \ | ||
libtiff-dev \ | ||
libicu-dev \ | ||
libx11-dev \ | ||
git \ | ||
libgit2-dev \ | ||
pandoc | ||
|
||
RUN Rscript -e 'install.packages("remotes");remotes::install_cran(c("ARTool", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]","[email protected]", "[email protected]","[email protected]","[email protected]", "[email protected]"))' | ||
# Install R packages | ||
RUN Rscript -e 'install.packages("remotes")' | ||
Run Rscript -e 'remotes::install_cran(c("ARTool", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]","[email protected]", "[email protected]","[email protected]","[email protected]", "[email protected]"))' | ||
RUN Rscript -e 'install.packages("tidyr")' | ||
RUN Rscript -e 'install.packages("jsonlite")' | ||
|
||
USER 999:999 | ||
CMD ["R"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,6 @@ | |
} | ||
}, | ||
|
||
"remoteUser": "root" | ||
|
||
"postCreateCommand": "Rscript -e 'bspm::enable(); devtools::install()'" | ||
} |