-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (41 loc) · 1.32 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Build the C, C++, Fortran, and Python BMI specifications in a Mambaforge (Linux/Ubuntu) image.
FROM condaforge/mambaforge:24.3.0-0
LABEL author="Mark Piper"
LABEL email="[email protected]"
RUN mamba install -y make cmake c-compiler cxx-compiler fortran-compiler pkg-config "numpy<2" && \
mamba clean --all
ENV base_url=https://github.com/csdms
ENV package=bmi-c
ENV version="2.1.2"
ENV prefix=/opt/${package}
RUN git clone --branch v${version} ${base_url}/${package} ${prefix}
WORKDIR ${prefix}/_build
RUN cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \
make && \
make install && \
make clean
ENV package=bmi-cxx
ENV version="2.0.2"
ENV prefix=/opt/${package}
RUN git clone --branch v${version} ${base_url}/${package} ${prefix}
WORKDIR ${prefix}/_build
RUN cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \
make && \
make install && \
make clean
ENV package=bmi-fortran
ENV version="2.0.2"
ENV prefix=/opt/${package}
RUN git clone --branch v${version} ${base_url}/${package} ${prefix}
WORKDIR ${prefix}/_build
RUN cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \
make && \
make install && \
make clean
ENV package=bmi-python
ENV version="2.0.1"
ENV prefix=/opt/${package}
RUN git clone --branch v${version} ${base_url}/${package} ${prefix}
WORKDIR ${prefix}
RUN pip install .
WORKDIR /opt