-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
57 lines (51 loc) · 2.55 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
# Base OS
FROM python:3.9-slim-buster
ARG VERSION="0.1.15"
ARG SIMULATOR_VERSION=0.7.25
# metadata
LABEL \
org.opencontainers.image.title="CBMPy" \
org.opencontainers.image.version="${SIMULATOR_VERSION}" \
org.opencontainers.image.description="Platform for constraint based modelling and analysis. CBMPy implements popular analyses such as FBA, FVA, element/charge balancing, network analysis and model editing as well as advanced methods developed specifically for the ecosystem modelling." \
org.opencontainers.image.url="http://cbmpy.sourceforge.net/" \
org.opencontainers.image.documentation="http://cbmpy.sourceforge.net/reference/cbmpy.html" \
org.opencontainers.image.source="https://github.com/biosimulators/Biosimulators_CBMPy" \
org.opencontainers.image.authors="BioSimulators Team <info@biosimulators.org>" \
org.opencontainers.image.vendor="BioSimulators Team" \
org.opencontainers.image.licenses="GPL-3.0-only" \
\
base_image="python:3.9-slim-buster" \
version="${VERSION}" \
software="CBMPy" \
software.version="${SIMULATOR_VERSION}" \
about.summary="Platform for constraint based modelling and analysis. CBMPy implements popular analyses such as FBA, FVA, element/charge balancing, network analysis and model editing as well as advanced methods developed specifically for the ecosystem modelling." \
about.home="http://cbmpy.sourceforge.net/" \
about.documentation="http://cbmpy.sourceforge.net/reference/cbmpy.html" \
about.license_file="https://github.com/SystemsBioinformatics/cbmpy/blob/master/LICENCE_GPLv3.txt" \
about.license="SPDX:GPL-3.0-only" \
about.tags="BioSimulators,mathematical model,constraint-based model,flux balance analysis,simulation,systems biology,computational biology,SBML,SED-ML,COMBINE,OMEX" \
maintainer="BioSimulators Team <info@biosimulators.org>"
# Install requirements
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
gcc \
libglpk-dev \
&& pip install glpk \
&& apt-get remove -y \
gcc \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# fonts for matplotlib
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends libfreetype6 \
&& rm -rf /var/lib/apt/lists/*
# Copy code for command-line interface into image and install it
COPY . /root/Biosimulators_CBMPy
RUN pip install /root/Biosimulators_CBMPy \
&& rm -rf /root/Biosimulators_CBMPy
RUN pip install cbmpy==${SIMULATOR_VERSION}
ENV VERBOSE=0 \
MPLBACKEND=PDF
# Entrypoint
ENTRYPOINT ["biosimulators-cbmpy"]
CMD []