-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
39 lines (30 loc) · 1.46 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
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.
#here was one "dependency" for cobra that was officially distutil (ruamel-yaml)
#That wheel kept trying to uninstall to reinstall, which caused problems, so we use --ignore-installed
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 cobra==0.25.0
RUN pip install networkx
RUN pip install chemw==0.3.2
RUN pip install --use-deprecated=legacy-resolver git+https://github.com/ModelSEED/ModelSEEDpy.git@8a83e2ab6bb9a6ac44cff4978128a9aada1f16c6
RUN pip install git+https://github.com/Fxe/cobrakbase.git@d0967661d0056d9449621e3e1c5f01d77b6c9108
# -----------------------------------------
COPY ./ /kb/module
RUN mkdir -p /kb/module/work
RUN chmod -R a+rw /kb/module
WORKDIR /kb/module
RUN make all
COPY ./cobra_patch/model.py /miniconda/lib/python3.6/site-packages/cobra/core/model.py
COPY ./cobra_patch/solver.py /miniconda/lib/python3.6/site-packages/cobra/util/solver.py
COPY ./cobra_patch/sbml.py /miniconda/lib/python3.6/site-packages/cobra/io/sbml.py
ENTRYPOINT [ "./scripts/entrypoint.sh" ]
CMD [ ]