Bootstrap: docker
From: ubuntu:noble

%files
    hicolor-icon-theme_0.17-2_all.deb /opt

%environment
    export TERM=linux
    export DEBIAN_FRONTEND=noninteractive
    #export FOAM_INST_DIR=/opt
    #. /opt/OpenFOAM-v1812/etc/bashrc

%post -c /bin/bash
    rm /etc/localtime
    echo America/Buenos_Aires > /etc/localtime
    echo "Installing required packages..."
    #cat /etc/apt/sources.list.d/ubuntu.sources
    export DEBIAN_FRONTEND="noninteractive"
    #dpkg -i /opt/hicolor-icon-theme_0.17-2_all.deb
    apt-get update && apt-get install -y && apt-get install -y gnuplot python3 python3-dev python3-numpy wget
    apt-get install -y build-essential autoconf autotools-dev cmake gawk
    apt-get install -y flex libfl-dev libreadline-dev zlib1g-dev openmpi-bin libopenmpi-dev mpi-default-bin mpi-default-dev
    apt-get install -y libgmp-dev libmpfr-dev libmpc-dev
    apt-get install -y libfftw3-dev libscotch-dev libptscotch-dev libboost-system-dev libboost-thread-dev libcgal-dev
    apt-get autoremove && apt-get autoclean
