generated from biosimulators/Biosimulators_simulator_template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
53 lines (47 loc) · 2.1 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
# Base OS
FROM python:3.9-slim-buster
ARG VERSION=0.1.37
ARG SIMULATOR_VERSION="1.6.6"
# metadata
LABEL \
org.opencontainers.image.title="GillesPy2" \
org.opencontainers.image.version="${SIMULATOR_VERSION}" \
org.opencontainers.image.description="Python 3 package for stochastic simulation of biochemical systems" \
org.opencontainers.image.url="https://github.com/StochSS/GillesPy2" \
org.opencontainers.image.documentation="https://stochss.github.io/GillesPy2/" \
org.opencontainers.image.source="https://github.com/biosimulators/Biosimulators_GillesPy2" \
org.opencontainers.image.authors="BioSimulators Team <[email protected]>" \
org.opencontainers.image.vendor="BioSimulators Team" \
org.opencontainers.image.licenses="GPL-3.0-only" \
\
base_image="python:3.9-slim-buster" \
version="${VERSION}" \
software="gillespy2" \
software.version="${SIMULATOR_VERSION}" \
about.summary="Python 3 package for stochastic simulation of biochemical systems" \
about.home="https://github.com/StochSS/GillesPy2" \
about.documentation="https://stochss.github.io/GillesPy2/" \
about.license_file="https://raw.githubusercontent.com/stochss/GillesPy2/main/LICENSE" \
about.license="SPDX:GPL-3.0-only" \
about.tags="systems biology,biochemical networks,dynamical modeling,stochastic simulation,SBML,SED-ML,COMBINE,OMEX,BioSimulators" \
maintainer="BioSimulators Team <[email protected]>"
# Install requirements
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
build-essential \
&& 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_GillesPy2
RUN pip install /root/Biosimulators_GillesPy2 \
&& rm -rf /root/Biosimulators_GillesPy2
RUN pip install "gillespy2==${SIMULATOR_VERSION}"
ENV VERBOSE=0 \
MPLBACKEND=PDF
# Entrypoint
ENTRYPOINT ["biosimulators-gillespy2"]
CMD []