e19d552987
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
32 lines
1014 B
Docker
32 lines
1014 B
Docker
#===- llvm/utils/docker/nvidia-cuda/build/Dockerfile ---------------------===//
|
|
#
|
|
# The LLVM Compiler Infrastructure
|
|
#
|
|
# This file is distributed under the University of Illinois Open Source
|
|
# License. See LICENSE.TXT for details.
|
|
#
|
|
#===----------------------------------------------------------------------===//
|
|
# Produces an image that compiles and archives clang, based on nvidia/cuda
|
|
# image.
|
|
FROM nvidia/cuda:8.0-devel
|
|
|
|
LABEL maintainer "LLVM Developers"
|
|
|
|
# Arguments to pass to build_install_clang.sh.
|
|
ARG buildscript_args
|
|
|
|
# Install llvm build dependencies.
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends ca-certificates cmake python \
|
|
subversion ninja-build && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
ADD checksums /tmp/checksums
|
|
ADD scripts /tmp/scripts
|
|
|
|
# Arguments passed to build_install_clang.sh.
|
|
ARG buildscript_args
|
|
|
|
# Run the build. Results of the build will be available as /tmp/clang.tar.gz.
|
|
RUN /tmp/scripts/build_install_llvm.sh ${buildscript_args}
|