Files
gem5/util/dockerfiles/clang-compiler/Dockerfile
Bobby R. Bruce 688268d22d util-docker: Minor housekeeping to Dockerfiles (#1592)
1. Moved description label to docker-bake.hcl. Image descriptions must
be specified here. See:
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#adding-a-description-to-multi-arch-images
2. Moved specifying the 'Dockerfile' to 'common'.
3. Changed it so the gpu-fs and gcn-fpu images only built to
linux/amd64. arm64 doesn't work.
2024-09-23 02:36:09 -07:00

18 lines
710 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.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