-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean intermediate files to reduce image size
- Loading branch information
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
# Build the C, C++, Fortran, and Python BMI specifications from a Mambaforge (Linux/Ubuntu) image. | ||
# 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" | ||
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 | ||
|
||
|
@@ -15,7 +16,8 @@ RUN git clone --branch v${version} ${base_url}/${package} ${prefix} | |
WORKDIR ${prefix}/_build | ||
RUN cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \ | ||
make && \ | ||
make install | ||
make install && \ | ||
make clean | ||
|
||
ENV package=bmi-cxx | ||
ENV version="2.0.2" | ||
|
@@ -24,7 +26,8 @@ RUN git clone --branch v${version} ${base_url}/${package} ${prefix} | |
WORKDIR ${prefix}/_build | ||
RUN cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \ | ||
make && \ | ||
make install | ||
make install && \ | ||
make clean | ||
|
||
ENV package=bmi-fortran | ||
ENV version="2.0.2" | ||
|
@@ -33,7 +36,8 @@ RUN git clone --branch v${version} ${base_url}/${package} ${prefix} | |
WORKDIR ${prefix}/_build | ||
RUN cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \ | ||
make && \ | ||
make install | ||
make install && \ | ||
make clean | ||
|
||
ENV package=bmi-python | ||
ENV version="2.0.1" | ||
|