-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-pyneuroml
61 lines (54 loc) · 2.42 KB
/
Dockerfile-pyneuroml
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
# Base OS
FROM python:3.9-slim-buster
ARG VERSION=0.0.16
ARG SIMULATOR_VERSION="0.5.20"
# metadata
LABEL \
org.opencontainers.image.title="pyNeuroML" \
org.opencontainers.image.version="${SIMULATOR_VERSION}" \
org.opencontainers.image.description="Python package for reading, writing, simulating and analysing NeuroML2/LEMS models" \
org.opencontainers.image.url="https://github.com/NeuroML/pyNeuroML" \
org.opencontainers.image.documentation="https://github.com/NeuroML/pyNeuroML/" \
org.opencontainers.image.source="https://github.com/biosimulators/Biosimulators_pyNeuroML" \
org.opencontainers.image.authors="BioSimulators Team <[email protected]>" \
org.opencontainers.image.vendor="BioSimulators Team" \
org.opencontainers.image.licenses="LGPL-3.0-only" \
\
base_image="python:3.9-slim-buster" \
version="${VERSION}" \
software="pyNeuroML" \
software.version="${SIMULATOR_VERSION}" \
about.summary="Python package for reading, writing, simulating and analysing NeuroML2/LEMS models" \
about.home="https://github.com/NeuroML/pyNeuroML" \
about.documentation="https://github.com/NeuroML/pyNeuroML/" \
about.license_file="https://raw.githubusercontent.com/NeuroML/pyNeuroML/master/LICENSE.lesser" \
about.license="SPDX:LGPL-3.0-only" \
about.tags="computational neuroscience,biochemical networks,dynamical modeling,stochastic simulation,NeuroML,LEMS,SED-ML,COMBINE,OMEX,BioSimulators" \
maintainer="BioSimulators Team <[email protected]>"
# Install requirements
RUN mkdir -p /usr/share/man/man1/ \
&& apt-get update -y \
&& apt-get install -y --no-install-recommends \
default-jre \
&& 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_pyNeuroML
RUN pip install /root/Biosimulators_pyNeuroML \
&& rm -rf /root/Biosimulators_pyNeuroML \
&& python -c "import matplotlib.font_manager"
RUN pip install "pyneuroml==${SIMULATOR_VERSION}"
ENV VERBOSE=0 \
MPLBACKEND=PDF
# configure matplotlib
RUN mkdir -p /.cache/matplotlib \
&& mkdir -p /.config/matplotlib \
&& chmod ugo+rw /.config/matplotlib \
&& chmod ugo+rw /.cache/matplotlib
# Entrypoint
ENTRYPOINT ["biosimulators-pyneuroml"]
CMD []