FROM amd64/ubuntu:20.04 ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ apt-get upgrade -y && \ apt-get autoremove -y && \ apt-get install time -y && \ apt-get install git -y && \ apt-get install curl -y && \ apt-get install texinfo -y && \ apt-get install vim -y && \ apt-get install bc -y && \ apt-get install m4 -y && \ apt-get install build-essential -y && \ apt-get install python3 -y && \ export SPACK_TARGET_TYPE="x86_64" && \ export SPACK_PYTHON=python3 && \ git clone --branch v0.21.0 https://github.com/spack/spack /opt/spack && \ . /opt/spack/share/spack/setup-env.sh && \ spack compiler find --scope system && \ spack external find --scope system && \ spack install gcc@10.2.0 && \ spack load gcc@10.2.0 && \ spack compiler find --scope system && \ spack install zlib-ng@2.1.4%gcc@10.2.0 && \ spack install cmake@3.26.3%gcc@10.2.0 && \ spack install libfabric@1.14.0 fabrics=sockets,tcp,udp,efa,mlx,shm && \ spack install openmpi@4.1.1%gcc@10.2.0 fabrics=auto && \ spack install hdf5@1.14.3%gcc@10.2.0 +hl +fortran ^openmpi@4.1.1 && \ spack install netcdf-c@4.9.2%gcc@10.2.0 ^hdf5 +hl +fortran ^openmpi@4.1.1 && \ spack install netcdf-fortran@4.5.3%gcc@10.2.0 && \ spack install esmf@8.4.2%gcc@10.2.0 +mpi esmf_comm=openmpi ^openmpi@4.1.1 && \ spack clean --all COPY bashrc /etc/bashrc