-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (25 loc) · 1010 Bytes
/
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
FROM ubuntu:22.04
RUN apt-get -y update && apt-get install -y apt-utils && \
apt-get install -y -qq -o=Dpkg::Use-Pty=0 build-essential gfortran \
libhdf5-dev libzip-dev ninja-build libcurl4-openssl-dev libboost-all-dev libbz2-dev cmake python3
# Install an alternative Fortran compiler
RUN apt-get install -y gfortran-10
# Set the alternative Fortran compiler as the default
RUN update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-10 10
# Fix broken dependencies and reconfigure ca-certificates
RUN apt-get -y update && apt-get install -f && dpkg --configure -a && apt-get clean
COPY . /vcellroot
RUN mkdir -p /vcellroot/build/bin
WORKDIR /vcellroot/build
RUN cmake \
-G Ninja \
-DOPTION_TARGET_PYTHON_BINDING=OFF \
-DOPTION_TARGET_MESSAGING=ON \
-DOPTION_TARGET_SMOLDYN_SOLVER=ON \
-DOPTION_TARGET_FV_SOLVER=ON \
-DOPTION_TARGET_DOCS=OFF \
.. && \
ninja
RUN ctest -VV
WORKDIR /vcellroot/build/bin
ENV PATH="/vcellroot/build/bin:${PATH}"