-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
66 lines (60 loc) · 2.31 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
# Base OS
FROM python:3.9-slim-buster
ARG VERSION="0.0.9"
ARG SIMULATOR_VERSION=3.0.0b
# metadata
LABEL \
org.opencontainers.image.title="GINsim" \
org.opencontainers.image.version="${SIMULATOR_VERSION}" \
org.opencontainers.image.description="Tool for modeling and simulating genetic regulatory networks." \
org.opencontainers.image.url="http://ginsim.org/" \
org.opencontainers.image.documentation="http://doc.ginsim.org/" \
org.opencontainers.image.authors="BioSimulators Team <[email protected]>" \
org.opencontainers.image.vendor="BioSimulators Team" \
org.opencontainers.image.licenses="SPDX:GPL-3.0-only" \
\
base_image="python:3.9-slim-buster" \
version="${VERSION}" \
software="GINsim" \
software.version="${SIMULATOR_VERSION}" \
about.summary="Tool for modeling and simulating genetic regulatory networks." \
about.home="http://ginsim.org/" \
about.documentation="http://doc.ginsim.org/" \
about.license_file="http://choosealicense.com/licenses/gpl-3.0/" \
about.license="SPDX:GPL-3.0-only" \
about.tags="BioSimulators,mathematical model,logical model,simulation,systems biology,computational biology,SBML,SED-ML,COMBINE,OMEX" \
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/*
# Install GINsim
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
default-jre \
wget \
\
&& cd /tmp \
&& pip install ginsim \
&& wget https://raw.githubusercontent.com/GINsim/GINsim-python/master/ginsim_setup.py \
&& python ginsim_setup.py \
\
&& rm ginsim_setup.py \
&& apt-get remove -y \
wget \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# Copy code for command-line interface into image and install it
COPY . /root/Biosimulators_GINsim
RUN pip install /root/Biosimulators_GINsim \
&& rm -rf /root/Biosimulators_GINsim
RUN mkdir -p /.config/matplotlib \
&& mkdir -p /.cache/matplotlib \
&& chmod ugo+rw /.config/matplotlib \
&& chmod ugo+rw /.cache/matplotlib \
&& python -c "import matplotlib.font_manager"
ENV VERBOSE=0 \
MPLBACKEND=PDF
# Entrypoint
ENTRYPOINT ["biosimulators-ginsim"]
CMD []