-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
executable file
·63 lines (51 loc) · 2.13 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
FROM kbase/sdkpython:3.8.0
MAINTAINER [email protected]
# -----------------------------------------
# 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.
# Here we install a python coverage tool and an
# https library that is out of date in the base image.
RUN pip install --upgrade pip
RUN pip install chemw==0.3.2
RUN pip install pandas
# update security libraries in the base image
RUN pip install cffi --upgrade \
&& pip install pyopenssl --upgrade \
&& pip install ndg-httpsclient --upgrade \
&& pip install pyasn1 --upgrade \
&& pip install requests --upgrade \
&& pip install 'requests[security]' --upgrade \
&& pip install --upgrade pyopenssl ndg-httpsclient && \
pip install --upgrade pyasn1 requests 'requests[security]' && \
pip install coverage networkx cython && \
pip install --upgrade pip setuptools wheel cffi
RUN apt-get update
RUN apt-get install -y gcc
RUN rm -rf /miniconda/lib/python3.6/site-packages/numpy
RUN rm -rf /miniconda/lib/python3.6/site-packages/ruamel*
RUN pip install --upgrade pip
RUN pip install "numpy<1.24"
RUN pip install cobra
RUN pip install networkx
RUN pip install deepdiff
RUN pip install h5py
RUN echo '36' >/dev/null && pip install --use-deprecated=legacy-resolver git+https://github.com/cshenry/ModelSEEDpy.git
RUN echo '30' >/dev/null && mkdir deps && cd deps && \
git clone --branch main https://github.com/cshenry/KBBaseModules.git
RUN echo '1' >/dev/null && cd deps && \
git clone https://github.com/ModelSEED/ModelSEEDDatabase.git && \
cd ModelSEEDDatabase && git checkout 2f5da32e26e3eed8181825ceebe1a45997204bcb
RUN echo '1' >/dev/null && cd deps && \
git clone https://github.com/cshenry/cobrakbase.git && \
cd cobrakbase && git checkout f0b3aa300fb153fc83b2fd5e83be231fc6992fae
RUN mkdir test
# -----------------------------------------
COPY ./ /kb/module
RUN mkdir -p /kb/module/work
RUN chmod -R a+rw /kb/module
WORKDIR /kb/module
RUN make all
ENTRYPOINT [ "./scripts/entrypoint.sh" ]
CMD [ ]