-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitpod.Dockerfile
More file actions
21 lines (17 loc) · 806 Bytes
/
Copy path.gitpod.Dockerfile
File metadata and controls
21 lines (17 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ARG BASE_CONTAINER=rocker/verse:4.0.4
FROM $BASE_CONTAINER
# install r packages
RUN R -e "install.packages('tidyverse', repos = 'http://cran.us.r-project.org')"
RUN R -e "install.packages('brms', repos = 'http://cran.us.r-project.org')"
RUN R -e "install.packages('osfr', repos = 'http://cran.us.r-project.org')"
RUN R -e "install.packages('cmdstanr', repos = c('https://mc-stan.org/r-packages/', getOption('repos')))"
RUN R -e "devtools::install_github('rmcelreath/rethinking')"
# install cmdstanr
RUN mkdir -p /workspace/.cmdstanr
ENV PATH="/workspace/.cmdstanr:${PATH}"
RUN R -e "cmdstanr::install_cmdstan(dir = '/workspace/.cmdstanr', cores = 4)"
# rstudio setup
COPY database.conf /etc/rstudio/database.conf
COPY .Rprofile /usr/local/lib/R/etc/Rprofile.site
# install lib dependencies
EXPOSE 8787