-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
69 lines (49 loc) · 1.9 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
FROM kbase/sdkbase2:python
# -----------------------------------------
# In this section, you can install any system dependencies required
# to run your App. For instance, you could place an apt-get update or
# install line here, a git checkout to download code, or run any other
# installation scripts.
RUN pip install --upgrade pip
RUN pip uninstall numpy -y \
&& pip install numpy==1.14.5 \
&& pip install networkx==2.1
RUN pip install pandas==0.23.4 \
&& pip install xlrd \
&& pip install openpyxl \
&& pip install xlsxwriter \
&& pip install dotmap \
&& pip install matplotlib \
&& pip install scipy
RUN pip install natsort
RUN conda install -yc bioconda biom-format
RUN pip install sklearn \
&& pip install plotly
RUN pip install mock
# R related installations
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FCAE2A0E115C3D8A
RUN echo 'deb https://cloud.r-project.org/bin/linux/debian stretch-cran35/' >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y r-base r-base-dev
RUN cp /usr/bin/R /kb/deployment/bin/.
RUN cp /usr/bin/Rscript /kb/deployment/bin/.
## Install packages are available for ecologists
# vegan: Community Ecology Package
RUN Rscript -e "install.packages('vegan')"
# vegan3d: Static and Dynamic 3D Plots for the 'vegan' Package
RUN Rscript -e "install.packages('vegan3d')"
## Install other packages
# parmigene: Parallel Mutual Information estimation for Gene Network reconstruction
RUN Rscript -e "install.packages('parmigene')"
# jsonlite: A Robust, High Performance JSON Parser and Generator for R
RUN Rscript -e "install.packages('jsonlite')"
# -----------------------------------------
COPY ./ /kb/module
RUN mkdir -p /kb/module/work
RUN mkdir -p /kb/module/work/amplicon
RUN mkdir -p /kb/module/work/amplicon/results
RUN chmod -R a+rw /kb/module
WORKDIR /kb/module
RUN make all
ENTRYPOINT [ "./scripts/entrypoint.sh" ]
CMD [ ]