1. Uses the all-dependencies image as the base image. 2. Has all compilers use Ubuntu 24.04. Notes: This change implitly changes our supported compilers to GCC v10 to v13 and Clang v14 to v18. This will be fully incorporated into the project later. Change-Id: Id8e2141ea64a34c7e3532605f6ecb7d9ccb76951
15 lines
604 B
Docker
15 lines
604 B
Docker
FROM --platform=${BUILDPLATFORM} ghcr.io/gem5/ubuntu-24.04_all-dependencies:latest
|
|
|
|
ARG version=13 # Version of GCC to install in this image. Default is 13.
|
|
|
|
RUN apt -y update && \
|
|
apt -y install gcc-${version} g++-${version} && \
|
|
update-alternatives --install \
|
|
/usr/bin/g++ g++ /usr/bin/g++-${version} 100 && \
|
|
update-alternatives --install \
|
|
/usr/bin/gcc gcc /usr/bin/gcc-${version} 100 && \
|
|
update-alternatives --install \
|
|
/usr/bin/c++ c++ /usr/bin/g++-${version} 100 && \
|
|
update-alternatives --install \
|
|
/usr/bin/cc cc /usr/bin/gcc-${version} 100
|