-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-neuron
48 lines (42 loc) · 2.08 KB
/
Dockerfile-neuron
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
# Base OS
FROM ghcr.io/biosimulators/biosimulators_pyneuroml/pyneuroml:latest
ARG VERSION=0.0.16
ARG SIMULATOR_VERSION="8.0.2"
# metadata
LABEL \
org.opencontainers.image.title="NEURON" \
org.opencontainers.image.version="${SIMULATOR_VERSION}" \
org.opencontainers.image.description="Simulation environment for building and using computational models of neurons and networks of neurons" \
org.opencontainers.image.url="https://neuron.yale.edu/" \
org.opencontainers.image.documentation="https://neuron.yale.edu/neuron/docs" \
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="BSD-3-Clause" \
\
base_image="python:3.9-slim-buster" \
version="${VERSION}" \
software="NEURON" \
software.version="${SIMULATOR_VERSION}" \
about.summary="Simulation environment for building and using computational models of neurons and networks of neurons" \
about.home="https://neuron.yale.edu/" \
about.documentation="https://neuron.yale.edu/neuron/docs" \
about.license_file="https://raw.githubusercontent.com/neuronsimulator/nrn/master/Copyright" \
about.license="SPDX:BSD-3-Clause" \
about.tags="computational neuroscience,biochemical networks,dynamical modeling,stochastic simulation,NeuroML,LEMS,SED-ML,COMBINE,OMEX,BioSimulators" \
maintainer="BioSimulators Team <[email protected]>"
# install requirements to compile NEURON mod files
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends gcc g++ make \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# set NEURON_HOME
ENV NEURON_HOME=/usr/local
# Copy code for command-line interface into image and install it
COPY . /root/Biosimulators_pyNeuroML
RUN pip install /root/Biosimulators_pyNeuroML[neuron] \
&& rm -rf /root/Biosimulators_pyNeuroML
RUN pip install "neuron==${SIMULATOR_VERSION}"
# Entrypoint
ENTRYPOINT ["biosimulators-neuron"]
CMD []