forked from kbaseapps/GenericsAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (42 loc) · 1.45 KB
/
Copy pathDockerfile
File metadata and controls
53 lines (42 loc) · 1.45 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
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 echo "start building docker image"
RUN apt-get update
RUN apt-get install -y gcc wget
RUN pip install --upgrade pip \
&& python --version
RUN pip uninstall numpy -y \
&& pip install numpy==1.18.0 \
&& pip install networkx==2.1 \
&& pip install pandas==0.23.4 \
&& pip install xlrd==1.2.0\
&& pip install openpyxl==3.0.2 \
&& pip install xlsxwriter==1.2.7 \
&& pip install dotmap==1.3.8 \
&& pip install matplotlib==3.1.2 \
&& pip install scipy==1.4.1 \
&& pip install natsort==6.2.0 \
&& pip install scikit-learn==0.22.1 \
&& pip install plotly==4.4.1 \
&& pip install mock==3.0.5 \
&& pip install biom-format==2.1.7
# -----------------------------------------
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
# -----------------------------------------
COPY ./ /kb/module
WORKDIR /kb/module
RUN make all
ENTRYPOINT [ "./scripts/entrypoint.sh" ]
CMD [ ]