This actually breaks multi-platform builds when using docker buildx via the docker-bake.hcl file. Removing this fixes and permits the multi-platform builds to be built.
19 lines
853 B
Docker
19 lines
853 B
Docker
FROM ghcr.io/gem5/ubuntu-24.04_all-dependencies:latest
|
|
|
|
LABEL org.opencontainers.image.source=https://github.com/gem5/gem5
|
|
LABEL org.opencontainers.image.description="A Dockerfile to build an Ubuntu 24.04 docker image with all dependencies for gem5, with Clang 16."
|
|
LABEL org.opencontainers.image.licenses=BSD-3-Clause
|
|
|
|
ARG version=16 # Version of Clang to install in this image. Default is 16.
|
|
|
|
RUN apt -y update && \
|
|
apt -y install clang-${version} && \
|
|
update-alternatives --install \
|
|
/usr/bin/clang++ clang++ /usr/bin/clang++-${version} 100 && \
|
|
update-alternatives --install \
|
|
/usr/bin/clang clang /usr/bin/clang-${version} 100 && \
|
|
update-alternatives --install \
|
|
/usr/bin/c++ c++ /usr/bin/clang++-${version} 100 && \
|
|
update-alternatives --install \
|
|
/usr/bin/cc cc /usr/bin/clang-${version} 100
|