Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Dockerfile.ngencoastal
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ENV LANG="C.UTF-8" \
HDF5_VERSION="1.10.11" \
NETCDF_C_VERSION="4.7.4" \
NETCDF_FORTRAN_VERSION="4.5.4" \
BOOST_VERSION="1.83.0"
BOOST_VERSION="1.86.0"

# Add conda repo
#RUN <<EOF cat > /etc/yum.repos.d/conda.repo
Expand Down Expand Up @@ -103,13 +103,15 @@ RUN curl --location --output ./miniforge.sh ${MINICONDA_INSTALLER_URL} && \

RUN --mount=type=cache,target=/root/.cache/cmake,id=cmake-boost \
set -eux && \
curl --location --output boost.tar.gz https://archives.boost.io/release/${BOOST_VERSION%%[a-z]*}/source/boost_${BOOST_VERSION//./_}.tar.gz && \
curl --location --output boost.tar.gz \
"https://archives.boost.io/release/${BOOST_VERSION%%[a-z]*}/source/boost_${BOOST_VERSION//./_}.tar.gz" && \
mkdir --parents /opt/boost && \
tar --extract --directory /opt/boost --strip-components=1 --file boost.tar.gz && \
rm boost.tar.gz \
# build boost libraries
&& cd /opt/boost && ./bootstrap.sh && ./b2 && ./b2 install --prefix=/usr/local \
&& rm -rf /opt/boost
rm boost.tar.gz && \
cd /opt/boost && \
./bootstrap.sh --prefix=/usr/local && \
./b2 -j"$(nproc)" install && \
rm -rf /opt/boost

# Build Python from source and install it
RUN --mount=type=cache,target=/root/.cache/build-python,id=build-python \
Expand Down