-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
21 lines (17 loc) · 907 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM rocker/r-ver:4.2
WORKDIR /home/docker
RUN mkdir mistyR
COPY . mistyR
WORKDIR mistyR
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y curl
RUN Rscript -e 'install.packages("remotes")'
RUN $(Rscript -e 'cat("apt-get install -y", paste(gsub("apt-get install -y ", "", remotes::system_requirements("ubuntu", "20.04"))))')
RUN apt-get install -y ghostscript libmagick++-dev libhdf5-dev libgeos-c1v5
RUN Rscript -e 'remotes::install_cran("BiocManager", ask = FALSE); BiocManager::install(ask = FALSE)'
RUN Rscript -e 'remotes::install_deps(dependencies = TRUE, repos = BiocManager::repositories(), upgrade = "always")'
RUN Rscript -e 'remotes::install_cran("tinytex", ask = FALSE)'
RUN Rscript -e 'tinytex::install_tinytex(); tinytex::tlmgr_update(); tinytex::tlmgr_install("pdfcrop")'
RUN Rscript -e 'remotes::install_local(build_vignettes = TRUE)'
WORKDIR /home/docker
RUN rm -rf mistyR