-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
executable file
·79 lines (69 loc) · 2.01 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#./Dockerfile
FROM rocker/rstudio
LABEL authors ="Jyotirmoy Das, Ph.D." \
description = "Docker image containing all requirement for the Alveolar Cell Type Deconvolution pipeline"
# install the package
RUN git clone https://github.com/JD2112/AlveolarCellTypeDeconvolution.git && \
cd AlveolarCellTypeDeconvolution
WORKDIR /assests
RUN apt-get update \
&& apt-get install -y --no-install-recommends apt-utils \
&& apt-get install -y --no-install-recommends \
## Basic deps
gdb \
python3-pip \
libz-dev \
liblzma-dev \
libbz2-dev \
libpng-dev \
libgit2-dev \
## sys deps from bioc_full
pkg-config \
fortran77-compiler \
byacc \
automake \
curl \
## new libs
libglpk-dev \
## Databases and other software
sqlite \
openmpi-bin \
mpi-default-bin \
openmpi-common \
openmpi-doc \
tcl8.6-dev \
tk-dev \
default-jdk \
imagemagick \
tabix \
ggobi \
graphviz \
protobuf-compiler \
jags \
## Additional resources
xfonts-100dpi \
xfonts-75dpi \
biber \
libsbml5-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
## update system libraries
RUN apt-get update && \
apt-get upgrade -y && \
apt-get clean
## install R CRAN binary packages
RUN install2.r -e \
testthat
## Install remaining packages from source
COPY ./Rscripts/required-CRANlibraries.R /assests/required-CRANlibraries.R
COPY ./Rscripts/required-BIOClibraries.R /assests/required-BIOClibraries.R
RUN Rscript required-CRANlibraries.R
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libfftw3-dev \
gcc && apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN Rscript -e 'requireNamespace("BiocManager"); BiocManager::install(ask=F);' \
&& Rscript required-BIOClibraries.R
COPY . /assests
CMD ["Rscript", "alvDcon.R"]