-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
39 lines (32 loc) · 1000 Bytes
/
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
FROM rocker/rstudio:4.4.1
LABEL source="https://github.com/davetang/learning_docker/blob/main/rstudio/Dockerfile"
MAINTAINER Dave Tang <me@davetang.org>
ARG bioc_ver=3.20
RUN apt-get clean all && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
git \
cmake \
libhdf5-dev \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libpng-dev \
libxt-dev \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
libglpk40 \
libgit2-dev \
libgsl-dev \
patch \
&& apt-get clean all && \
apt-get purge && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN Rscript -e "install.packages(c('rmarkdown', 'tidyverse', 'tidymodels', 'workflowr', 'BiocManager', 'quarto'));"
RUN Rscript -e "BiocManager::install(version = '${bioc_ver}')"
# the rstudio/ path is set for building with GitHub Actions
COPY --chown=rstudio:rstudio rstudio/rstudio-prefs.json /home/rstudio/.config/rstudio
COPY --chown=rstudio:rstudio rstudio/.Rprofile /home/rstudio/
WORKDIR /home/rstudio