# SPDX-FileCopyrightText: 2026 Oak Ridge National Laboratory and Contributors # # SPDX-License-Identifier: Apache-2.0 ARG BASE_IMAGE=ghcr.io/ornladios/adios2:ci-spack-ubuntu22.04-base FROM $BASE_IMAGE ARG GCC_VERSION=9 RUN apt-get update && apt-get install -y \ gcc-${GCC_VERSION} \ g++-${GCC_VERSION} \ gfortran-${GCC_VERSION} && \ rm -rf /var/lib/apt/lists/* && \ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_VERSION} ${GCC_VERSION} && \ update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${GCC_VERSION} ${GCC_VERSION} && \ update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_VERSION} ${GCC_VERSION}