-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (36 loc) · 1.06 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
FROM python:2.7
# Install / update relevant ubuntu packages:
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential unzip wget libgmp3-dev python-pip
# Download and install glpk:
RUN mkdir /usr/local/glpk \
&& curl http://ftp.gnu.org/gnu/glpk/glpk-4.39.tar.gz \
| tar xvzC /usr/local/glpk --strip-components=1 \
&& cd /usr/local/glpk \
&& ./configure \
&& make \
&& make install
# Install pyglpk:
RUN pip install --upgrade pip \
&& pip install setuptools \
&& pip install glpk
# Install libSBML
RUN pip install python-libsbml
# Install Cobra toolbox
RUN pip install cobra
#Flask and Flask-RESTful
RUN pip install flask \
&& pip install flask_restful
# Update paths:
ENV LD_LIBRARY_PATH /usr/local/lib:${LD_LIBRARY_PATH}
# Install subliminal-py
RUN pip install subliminal-py
# Install Flask-CORS
RUN pip install flask-cors
# Make current directory visible inside Docker container:
RUN cd home/
WORKDIR /home
RUN git clone https://github.com/dbkgroup/reaction-balancer.git
# Run test:
ENTRYPOINT ["python"]
CMD ["reaction-balancer/rest.py"]