BootStrap: docker
From: ubuntu:22.04

%post
    #!/bin/bash

    # Setup
    # -----

    apt_args="-y"

    ln -snf /usr/share/zoneinfo/Europe/Paris /etc/localtime
    export LANG="C"
    export LANGUAGE=$LANG
    export LC_ALL=$LANG
    export DEBIAN_FRONTEND=noninteractive
    apt update
    apt install -y wget pgpgpg

    wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
    | gpg --dearmor \
    | tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null

    echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" \
    | tee /etc/apt/sources.list.d/oneAPI.list

    apt update

    apt install -y libmkl-rt
    apt install -y intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp

    apt install -y bash vim

