From a6104808d0c680260eb19af72f1d01372247729f Mon Sep 17 00:00:00 2001 From: jcschaff Date: Tue, 10 Sep 2024 10:55:18 -0400 Subject: [PATCH] fix Docker build --- Dockerfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fabea247..dc497dfd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,17 @@ 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 zlib1g-dev \ - libhdf5-dev libzip-dev ninja-build libcurl4-openssl-dev libboost-all-dev bzip2 cmake wget python3 + 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