-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (33 loc) · 1.51 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM --platform=linux/amd64 rocker/rstudio:4.1.3
# set environment variable to disable authentication
ENV DISABLE_AUTH=true
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libssl-dev \
libcurl4-openssl-dev \
libxml2-dev \
libpq-dev \
libxt6 && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get -yq install libglpk-dev
# Install specific R packages
RUN Rscript -e "install.packages('remotes')"
RUN Rscript -e "remotes::install_version('data.table', '1.12.8')"
RUN Rscript -e "remotes::install_version('GGally', '2.1.0')"
RUN Rscript -e "remotes::install_version('here', '1.0.1')"
RUN Rscript -e "remotes::install_version('kknn','1.3.1')"
RUN Rscript -e "remotes::install_version('tidymodels','0.1.1')"
RUN Rscript -e "remotes::install_version('tidyverse','1.3.0')"
RUN Rscript -e "remotes::install_github('DSCI-310/[email protected]', force = TRUE)"
# Install remaining R packages
RUN Rscript -e "install.packages(c('bookdown', 'knitr', 'devtools', 'markdown'))"
WORKDIR /home/rstudio
ADD --chown=rstudio:rstudio Analysis /home/rstudio/Analysis
ADD --chown=rstudio:rstudio R /home/rstudio/R
ADD --chown=rstudio:rstudio data /home/rstudio/data
# ADD --chown=rstudio:rstudio Tests /home/rstudio/Tests
ADD --chown=rstudio:rstudio output /home/rstudio/output
ADD --chown=rstudio:rstudio Makefile /home/rstudio
ADD --chown=rstudio:rstudio dsci-310-group-16.Rproj /home/rstudio
ENV RSTUDIO_PROJECT=/home/rstudio/project/dsci-310-group-16.Rproj