-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (55 loc) · 2.41 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
# Build image:
# docker build --tag ghcr.io/biosimulators/biosimulators_cobrapy/cobrapy:0.20.0 --tag ghcr.io/biosimulators/biosimulators_cobrapy/cobrapy: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/cobrapy:latest \
# -i /root/in/BIOMD0000000297.omex \
# -o /root/out
# Base OS
FROM python:3.9-slim-buster
ARG VERSION="0.1.23"
ARG SIMULATOR_VERSION="0.24.0"
# metadata
LABEL \
org.opencontainers.image.title="COBRApy" \
org.opencontainers.image.version="${SIMULATOR_VERSION}" \
org.opencontainers.image.description="Package for constraint-based modeling of metabolic networks" \
org.opencontainers.image.url="https://opencobra.github.io/cobrapy/" \
org.opencontainers.image.documentation="https://cobrapy.readthedocs.io/" \
org.opencontainers.image.source="https://github.com/biosimulators/biosimulators_cobrapy" \
org.opencontainers.image.authors="BioSimulators Team <[email protected]>" \
org.opencontainers.image.vendor="BioSimulators Team" \
org.opencontainers.image.licenses="GPL-2.0" \
\
base_image="python:3.9-slim-buster" \
version="${VERSION}" \
software="COBRApy" \
software.version="${SIMULATOR_VERSION}" \
about.summary="Package for constraint-based modeling of metabolic networks" \
about.home="https://opencobra.github.io/cobrapy/" \
about.documentation="https://cobrapy.readthedocs.io/" \
about.license_file="https://github.com/opencobra/cobrapy/blob/devel/LICENSE" \
about.license="SPDX:GPL-2.0" \
about.tags="constraint-based modeling,flux balance analysis,systems biology,biochemical networks,SBML,SED-ML,COMBINE,OMEX,BioSimulators" \
maintainer="BioSimulators Team <[email protected]>"
# 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_COBRApy
RUN pip install /root/Biosimulators_COBRApy/[gurobi] \
&& mkdir -p /.cache/cobrapy \
&& chmod ugo+rw /.cache/cobrapy \
&& rm -rf /root/Biosimulators_COBRApy
RUN pip install cobra==${SIMULATOR_VERSION}
ENV VERBOSE=0 \
MPLBACKEND=PDF
# Entrypoint
ENTRYPOINT ["biosimulators-cobrapy"]
CMD []