-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
27 lines (22 loc) · 1.6 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM rocker/verse:4.2.2
WORKDIR /home/rstudio
# Install R and tidyverse
RUN apt-get update && \
apt-get install -y r-base && \
R -e "install.packages('tidyverse', repos = 'http://cran.us.r-project.org')"
# Install R packages
RUN R -e "install.packages('remotes', repos='http://cran.rstudio.com/')"
RUN Rscript -e "remotes::install_version('broom', version ='1.0.3', repos = 'http://cran.us.r-project.org')"
RUN Rscript -e "remotes::install_version('GGally', version ='2.1.2', repos = 'http://cran.us.r-project.org')"
RUN Rscript -e "remotes::install_version('leaps', version ='3.1', repos = 'http://cran.us.r-project.org')"
RUN Rscript -e "remotes::install_version('glmnet', version ='4.1-6', repos = 'http://cran.us.r-project.org')"
RUN Rscript -e "remotes::install_version('testthat', version ='3.1.6', repos = 'http://cran.us.r-project.org')"
RUN Rscript -e "remotes::install_version('bookdown', version ='0.33', repos = 'http://cran.us.r-project.org')"
RUN Rscript -e "remotes::install_version('docopt', version ='0.7.1', repos = 'http://cran.us.r-project.org')"
RUN Rscript -e "remotes::install_version('here', version ='1.0.1', repos = 'http://cran.us.r-project.org')"
RUN Rscript -e "remotes::install_version('ggplotify', version ='0.1.0', repos = 'http://cran.us.r-project.org')"
RUN Rscript -e "remotes::install_version('rmarkdown', version ='2.21', repos = 'http://cran.us.r-project.org')"
RUN Rscript -e "remotes::install_version('devtools','2.4.5', repos = 'http://cran.us.r-project.org')"
#install the package made for project
RUN Rscript -e "devtools::install_github('DSCI-310/dsci-310-group-01-pkg')"
EXPOSE 8787