brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · f4fb3cc Raw
34 lines · plain
1#===- llvm/utils/docker/nvidia-cuda/build/Dockerfile ---------------------===//2#3# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4# See https://llvm.org/LICENSE.txt for license information.5# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6#7#===----------------------------------------------------------------------===//8# Stage 1. Check out LLVM source code and run the build.9FROM docker.io/nvidia/cuda:12.6.3-devel-ubuntu24.04 AS builder10LABEL maintainer="LLVM Developers"11# Install llvm build dependencies.12RUN apt-get update && \13    apt-get install -y --no-install-recommends ca-certificates cmake 2to3 python-is-python3 \14        subversion ninja-build git && \15    rm -rf /var/lib/apt/lists/*16 17ADD checksums /tmp/checksums18ADD scripts /tmp/scripts19 20# Checkout the source code.21ARG checkout_args22RUN /tmp/scripts/checkout.sh ${checkout_args}23# Run the build. Results of the build will be available at /tmp/clang-install/.24ARG buildscript_args25RUN /tmp/scripts/build_install_llvm.sh --to /tmp/clang-install ${buildscript_args}26 27 28# Stage 2. Produce a minimal release image with build results.29FROM docker.io/nvidia/cuda:12.6.3-devel-ubuntu24.0430LABEL maintainer="LLVM Developers"31# Copy clang installation into this container.32COPY --from=builder /tmp/clang-install/ /usr/local/33# C++ standard library and binutils are already included in the base package.34