-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
69 lines (53 loc) · 2.03 KB
/
Dockerfile
File metadata and controls
69 lines (53 loc) · 2.03 KB
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
MAINTAINER KBase Developer
# -----------------------------------------
# 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 cat /etc/os-release
# R related installations
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-key '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7'
RUN echo 'deb https://cloud.r-project.org/bin/linux/debian stretch-cran35/' >> /etc/apt/sources.list
RUN apt-get update --fix-missing
RUN apt-get install -y gcc wget 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')"
RUN pip install --upgrade pip \
&& python --version
RUN pip install coverage==6.1.1 \
&& pip install numpy==1.19.5 \
&& pip install scikit-bio==0.5.6 --ignore-installed certifi \
&& pip install networkx==2.5.1 \
&& pip install pandas==1.1.5 \
&& pip install xlrd==1.2.0 \
&& pip install openpyxl==3.0.9 \
&& pip install xlsxwriter==3.0.2 \
&& pip install dotmap==1.3.25 \
&& pip install matplotlib==3.3.4 \
&& pip install scipy==1.5.4 \
&& pip install natsort==8.0.0 \
&& pip install scikit-learn==0.24.2 \
&& pip install plotly==5.3.1 \
&& pip install mock==4.0.3 \
&& pip install biom-format==2.1.10 \
&& pip install rpy2==3.4.5
# -----------------------------------------
RUN mkdir -p /kb/module/work
RUN chmod -R a+rw /kb/module
# install SigmaJS http://sigmajs.org/
RUN cd /kb/module && \
wget https://github.com/jacomyal/sigma.js/archive/v1.2.1.zip && \
unzip v1.2.1.zip && \
rm -rf v1.2.1.zip && \
mv sigma.js-1.2.1 sigma_js
# -----------------------------------------
ENV PYTHONUNBUFFERED=1
COPY ./ /kb/module
WORKDIR /kb/module
RUN make all
ENTRYPOINT [ "./scripts/entrypoint.sh" ]
CMD [ ]