-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-base
60 lines (56 loc) · 2.12 KB
/
Dockerfile-base
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
# Base OS
FROM python:3.9-slim-buster
ARG SIMULATOR_VERSION=2.1.5
LABEL \
org.opencontainers.image.title="BoolNet" \
org.opencontainers.image.version="${SIMULATOR_VERSION}" \
org.opencontainers.image.description="Package for generation, reconstruction, simulation and analysis of synchronous, asynchronous and probabilistic Boolean networks." \
org.opencontainers.image.url="https://sysbio.uni-ulm.de/?Software:BoolNet" \
org.opencontainers.image.documentation="https://cran.r-project.org/web/packages/BoolNet/index.html" \
org.opencontainers.image.source="https://github.com/biosimulators/Biosimulators_BoolNet" \
org.opencontainers.image.authors="Medical Systems Biology, Ulm University" \
org.opencontainers.image.vendor="BioSimulators Team" \
org.opencontainers.image.licenses="Artistic-2.0"
# Install requirements
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
gnupg \
software-properties-common \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B8F25A8A73EACF41 \
&& add-apt-repository 'deb http://cloud.r-project.org/bin/linux/debian buster-cran40/' \
&& apt-get update -y \
&& apt-get install -y --no-install-recommends \
r-base \
build-essential \
gcc \
gfortran \
libblas-dev \
libcurl4-openssl-dev \
libgit2-dev \
liblapack-dev \
libssl-dev \
libxml2 \
libxml2-dev \
&& Rscript \
-e "install.packages('devtools')" \
-e "require(devtools)" \
-e "install_version('BoolNet', version='${SIMULATOR_VERSION}')" \
-e "require('BoolNet')" \
&& apt-get remove -y \
gnupg \
software-properties-common \
build-essential \
gcc \
gfortran \
libblas-dev \
libcurl4-openssl-dev \
libgit2-dev \
liblapack-dev \
libssl-dev \
libxml2-dev \
&& 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/*