-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
67 lines (63 loc) · 1.79 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
64
65
66
67
# BioSimulations-compliant Docker image for BioNetGen <https://bionetgen.org>
#
# Build image:
# docker build \
# --tag crbm/biosimulations_bionetgen:2.5.0 \
# --tag crbm/biosimulations_bionetgen:latest \
# .
#
# Run image:
# docker run \
# --tty \
# --rm \
# --mount type=bind,source="$(pwd)"/tests/fixtures,target=/root/in,readonly \
# --mount type=bind,source="$(pwd)"/tests/results,target=/root/out \
# crbm/biosimulations_bionetgen:latest \
# -i /root/in/test.omex \
# -o /root/out
#
# Author: Ali Sinan Saglam <[email protected]>
# Author: Jonathan Karr <[email protected]>
# Date: 2020-04-13
FROM continuumio/anaconda3
# install requirements and BioNetGet
RUN apt-get update -y \
&& apt-get install --no-install-recommends -y \
cmake \
g++ \
git \
make \
perl \
vim \
\
&& git clone https://github.com/RuleWorld/bionetgen /root/bionetgen \
&& cd /root/bionetgen \
&& git submodule init \
&& git submodule update \
&& cd /root/bionetgen/bng2 \
&& make \
\
&& apt-get remove -y \
cmake \
g++ \
git \
make \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
ENV PATH=${PATH}:/root/bionetgen/bng2
# install BioSimulations-compliant command-line interface to BioNetGen
COPY . /root/Biosimulations_BioNetGen
RUN apt-get update -y \
&& apt-get install --no-install-recommends -y \
git \
&& pip install git+https://github.com/reproducible-biomedical-modeling/Biosimulations_utils.git#egg=Biosimulations_utils \
\
&& pip install /root/Biosimulations_BioNetGen \
\
&& apt-get remove -y \
git \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# setup entry point
ENTRYPOINT ["bionetgen"]
CMD []