-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
57 lines (51 loc) · 2.33 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
# Build image:
# docker build --tag ghcr.io/biosimulators/biosimulators_copasi/copasi:4.33.246 --tag ghcr.io/biosimulators/biosimulators_copasi/copasi: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 \
# ghcr.io/biosimulators/copasi:latest \
# -i /root/in/BIOMD0000000297.omex \
# -o /root/out
# Base OS
FROM python:3.10-slim-buster
ARG VERSION="0.1.38"
ARG SIMULATOR_VERSION="4.44.295"
# metadata
LABEL \
org.opencontainers.image.title="COPASI" \
org.opencontainers.image.version="${SIMULATOR_VERSION}" \
org.opencontainers.image.description="Open-source software package for the simulation and analysis of biochemical networks and their dynamics." \
org.opencontainers.image.url="http://copasi.org/" \
org.opencontainers.image.documentation="http://copasi.org/Support/User_Manual/" \
org.opencontainers.image.source="https://github.com/biosimulators/Biosimulators_COPASI" \
org.opencontainers.image.authors="BioSimulators Team <info@biosimulators.org>" \
org.opencontainers.image.vendor="BioSimulators Team" \
org.opencontainers.image.licenses="Artistic-2.0" \
\
base_image="python:3.10-slim-buster" \
version="${VERSION}" \
software="COPASI" \
software.version="${SIMULATOR_VERSION}" \
about.summary="Open-source software package for the simulation and analysis of biochemical networks and their dynamics." \
about.home="http://copasi.org/" \
about.documentation="http://copasi.org/Support/User_Manual/" \
about.license_file="https://github.com/copasi/COPASI/blob/develop/license.txt" \
about.license="SPDX:Artistic-2.0" \
about.tags="kinetic modeling,dynamical simulation,systems biology,biochemical networks,SBML,SED-ML,COMBINE,OMEX,BioSimulators" \
maintainer="BioSimulators Team <info@biosimulators.org>"
# fonts for matplotlib
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends libfreetype6 \
&& rm -rf /var/lib/apt/lists/*
# We should be able to just pip install; this is a good test anyway
RUN pip install biosimulators-copasi
ENV ALGORITHM_SUBSTITUTION_POLICY=SIMILAR_VARIABLES \
VERBOSE=0 \
MPLBACKEND=PDF
# Entrypoint
ENTRYPOINT ["biosimulators-copasi"]
CMD []