-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
57 lines (48 loc) · 1.96 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Version-stable base R & src build tools
FROM rocker/tidyverse:latest
LABEL author="Roland Schmucki, Jitao David Zhang" \
description="Base package for ribios scripts" \
maintainer="[email protected]"
# Github Personal Access Token (read public repo)
ARG GITHUB_PAT
## Required by devtools
## libnlopt-dev is only used for ribiosGSEA
RUN apt-get update -y && apt-get install --no-install-recommends -y \
libssl-dev libcurl4-openssl-dev \
libfontconfig1-dev libxml2-dev libgit2-dev \
libharfbuzz-dev libfribidi-dev libfreetype6-dev \
libpng-dev libtiff5-dev libjpeg-dev \
libx11-dev libcairo2-dev libmagick++-dev libmagick++-dev \
alien curl libnlopt-dev && \
rm -rf /var/lib/apt/lists/
# Install dependencies
RUN R -e "options(Ncpus = parallel::detectCores()); \
chooseCRANmirror(ind = 1); \
BiocManager::install(c(\
'ComplexHeatmap', 'reshape', 'openxlsx', 'corrplot', 'plotrix',\
'ggrepel', 'fgsea', 'randomForest', 'KEGGgraph',\
'mgcv', 'caret', 'graph', 'RBGL' \
), dependencies = NA, update = FALSE, \
ask = FALSE, upgrade_dependencies = FALSE)"
RUN R -e "install.packages('Vennerable', repos='http://R-Forge.R-project.org', \
dependencies=TRUE, upgrade_dependencies = TRUE)"
# Install ribios packages
RUN R -e "options(Ncpus = parallel::detectCores()); \
chooseCRANmirror(ind = 1); \
BiocManager::install(c(\
'bedapub/ribiosArg', \
'bedapub/ribiosUtils', \
'bedapub/ribiosIO', \
'bedapub/ribiosAnnotation', \
'bedapub/ribiosExpression', \
'bedapub/ribiosNGS', \
'bedapub/ribiosMath', \
'bedapub/ribiosPlot', \
'bedapub/ribiosGSEA'), \
dependencies=TRUE, upgrade_dependencies = TRUE)" && \
rm -rf /tmp/downloaded_packages/ /tmp/*.rds
## copy the scripts into the bin directory
WORKDIR /ribiosScripts/bin/
COPY ./scripts/*.Rscript /ribiosScripts/bin/
RUN chmod +x /ribiosScripts/bin/*.Rscript
ENV PATH "$PATH:/ribiosScripts/bin"