forked from ASinanSaglam/BNG_BioSimDocker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
87 lines (80 loc) · 3.12 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# BioSimulators-compliant Docker image for BioNetGen <https://bionetgen.org>
#
# Build image:
# docker build \
# --tag biosimulators/bionetgen:2.8.0 \
# --tag biosimulators/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 \
# biosimulators/bionetgen:latest \
# -i /root/in/test.omex \
# -o /root/out
#
# Author: Jonathan Karr <[email protected]>
# Author: Ali Sinan Saglam <[email protected]>
# Date: 2021-01-05
FROM python:3.9-slim-buster
ARG VERSION="0.1.20"
ARG SIMULATOR_VERSION=2.8.0
# metadata
LABEL \
org.opencontainers.image.title="BioNetGen" \
org.opencontainers.image.version="${SIMULATOR_VERSION}" \
org.opencontainers.image.description="Open-source software package for rule-based modeling of complex biochemical systems" \
org.opencontainers.image.url="https://bionetgen.org/" \
org.opencontainers.image.documentation="https://bionetgen.org/" \
org.opencontainers.image.source="https://github.com/biosimulators/Biosimulators_BioNetGen" \
org.opencontainers.image.authors="BioSimulators Team <[email protected]>" \
org.opencontainers.image.vendor="BioSimulators Team" \
org.opencontainers.image.licenses="MIT" \
\
base_image="python:3.9-slim-buster" \
version="${VERSION}" \
software="BioNetGen" \
software.version="${SIMULATOR_VERSION}" \
about.summary="Open-source software package for rule-based modeling of complex biochemical systems" \
about.home="https://bionetgen.org/" \
about.documentation="https://bionetgen.org/" \
about.license_file="https://github.com/RuleWorld/bionetgen/blob/master/LICENSE" \
about.license="SPDX:MIT" \
about.tags="rule-based modeling,kinetic modeling,dynamical simulation,systems biology,BNGL,SED-ML,COMBINE,OMEX,BioSimulators" \
extra.identifiers.biotools="bionetgen" \
maintainer="BioSimulators Team <[email protected]>"
# install BioNetGet and its dependencies
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
perl \
tar \
wget \
\
&& cd /tmp \
&& wget https://github.com/RuleWorld/bionetgen/releases/download/BioNetGen-${SIMULATOR_VERSION}/BioNetGen-${SIMULATOR_VERSION}-linux.tgz \
&& tar xvvf BioNetGen-${SIMULATOR_VERSION}-linux.tgz \
&& mv BioNetGen-${SIMULATOR_VERSION}/ /opt/ \
\
&& rm BioNetGen-${SIMULATOR_VERSION}-linux.tgz \
\
&& apt-get remove -y \
wget \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
ENV PATH=${PATH}:/opt/BioNetGen-${SIMULATOR_VERSION}/
# fonts for matplotlib
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends libfreetype6 \
&& rm -rf /var/lib/apt/lists/*
# install BioSimulators-compliant command-line interface to BioNetGen
COPY . /root/Biosimulators_BioNetGen
RUN pip install /root/Biosimulators_BioNetGen \
&& rm -rf /root/Biosimulators_BioNetGen
ENV VERBOSE=0 \
MPLBACKEND=PDF
# setup entry point
ENTRYPOINT ["biosimulators-bionetgen"]
CMD []