-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (22 loc) · 800 Bytes
/
Dockerfile
File metadata and controls
25 lines (22 loc) · 800 Bytes
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
FROM fedora:33
RUN dnf -y update \
&& dnf -y install \
less \
tmux \
gcc-gfortran \
make \
netcdf-fortran-devel \
gsl-devel \
cmake \
lcov \
&& dnf clean all
# NOTE: Modify .dockerignore to whitelist files/directories to copy.
COPY . /partmc/
RUN mkdir /build \
&& cd /build \
&& cmake -D CMAKE_BUILD_TYPE=release \
-D CMAKE_C_FLAGS_RELEASE="-O2 -g -Werror -Wall -Wextra --coverage" \
-D CMAKE_Fortran_FLAGS_RELEASE="-O2 -g -Werror -fimplicit-none -Wall -Wextra -Wconversion -Wunderflow -Wimplicit-interface -Wno-compare-reals -Wno-unused -Wno-unused-parameter -Wno-unused-dummy-argument -fbounds-check --coverage" \
-D ENABLE_GSL:BOOL=TRUE \
/partmc \
&& make