-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
16 lines (11 loc) · 907 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM bioconductor/bioconductor_docker:RELEASE_3_19
LABEL name="jorainer/xcms_tutorials" \
url="https://github.com/jorainer/xcmsTutorials" \
maintainer="[email protected]" \
description="Docker container to run xcms tutorials. This version bases on the Bioconductor release 3.19 docker image." \
license="Artistic-2.0"
WORKDIR /home/rstudio
COPY --chown=rstudio:rstudio . /home/rstudio/
## Install the xcmsTutorials package and additional required packages
RUN Rscript -e "options(repos = c(CRAN = 'https://cran.r-project.org')); BiocManager::install(ask = FALSE, type = 'source'); BiocManager::install(c('RCurl', 'xcms'), ask = FALSE, dependencies = TRUE, type = 'source')"
RUN Rscript -e "options(repos = c(CRAN = 'https://cran.r-project.org')); devtools::install('.', dependencies = TRUE, type = 'source', build_vignettes = TRUE, repos = BiocManager::repositories())"