forked from rschwess/deepC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
98 lines (92 loc) · 2.64 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Start from the TensorFlow 2.1.2 GPU image that also includes Jupyter
# FROM tensorflow/tensorflow:2.1.2-gpu-jupyter
FROM tensorflow/tensorflow:2.16.1-gpu-jupyter
ENV DEBIAN_FRONTEND=noninteractive
ENV tz=America/New_York
# Update the package list, install R base, and clean up
RUN apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get install -y \
software-properties-common \
build-essential \
libxml2-dev \
gdebi-core \
bedtools \
samtools \
bamtools \
libbamtools-dev \
perl \
r-base r-base-dev r-cran-tidyverse r-recommended \
libssl-dev libxml2-dev libcairo2-dev libgit2-dev \
jupyter \
libxml2-dev libcurl4-gnutls-dev libssl-dev libv8-dev \
imagemagick libxml-simple-perl libxml-sax-expat-perl \
libconfig-json-perl libhtml-treebuilder-libxml-perl libhtml-template-perl \
libhtml-parser-perl zlib1g-dev libxslt-dev \
libcairo2-dev libxt-dev \
python3 python3-dev python3-pip \
bedtools \
wget \
git \
libopenblas-dev \
libcurl4 \
libmagick++-dev \
libmpfr-dev \
libgmp3-dev \
libudunits2-dev libharfbuzz-dev libfribidi-dev \
libglpk-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install Python packages
RUN pip install --upgrade pip && \
pip install --no-cache-dir --ignore-installed \
scikit-learn \
scikeras \
pyfaidx \
pyBigWig \
jupyterlab \
scipy \
matplotlib \
seaborn \
umap-learn \
logomaker \
pysam \
pandas \
tqdm \
plotnine \
pyGenomeTracks \
mpl-scatter-density \
deeptools \
statsmodels \
CrossMap \
matplotlib-venn \
biopython \
panel \
bokeh \
biotite \
upsetplot \
tobias \
scanpy \
pympl \
imageio \
wordcloud \
distfit \
lckr-jupyterlab-variableinspector \
jupyter-resource-usage \
jupyterlab-spreadsheet-editor \
jupyterlab_execute_time \
openai \
bioframe
# Install R packages
RUN R -e "install.packages('rlang', dependencies=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e "install.packages('devtools', dependencies=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e "install.packages('BiocManager', dependencies=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e "install.packages(c('tidyverse', 'cowplot', 'RColorBrewer', 'XML'), dependencies=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e "BiocManager::install('rtracklayer')"
# Expose Jupyter port
EXPOSE 8888
# Install DeepC
WORKDIR /tf
RUN git clone https://github.com/abdenlab/deepC.git
# Set the default command to launch Jupyter Notebook
CMD ["jupyter", "notebook", "--notebook-dir=/tf", "--ip=0.0.0.0", "--no-browser", "--allow-root"]