# hash:sha256:a777f709516659365f1b1c0d1428c2f9f26a70eacc77315616b9f91d8fddeeb1
FROM registry.codeocean.com/codeocean/r-studio:1.2.5019-r4.0.3-ubuntu18.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
    && apt-get install -y --no-install-recommends \
        libv8-dev=3.14.5.8-11ubuntu1 \
    && rm -rf /var/lib/apt/lists/*

RUN Rscript -e 'options(warn=2); install.packages("BiocManager")'
RUN Rscript -e 'options(warn=2); BiocManager::install(c( \
        "dplyr", \
        "fdapace", \
        "ggplot2", \
        "lhs", \
        "reshape2", \
        "rstan" \
    ))' # Original versions: 1.0.7 0.5.7 3.3.5 1.1.3 1.4.4 2.21.2
