diff options
Diffstat (limited to 'llvm/utils/docker/nvidia-cuda/Dockerfile')
| -rw-r--r-- | llvm/utils/docker/nvidia-cuda/Dockerfile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/llvm/utils/docker/nvidia-cuda/Dockerfile b/llvm/utils/docker/nvidia-cuda/Dockerfile new file mode 100644 index 00000000000..6a354c88c7c --- /dev/null +++ b/llvm/utils/docker/nvidia-cuda/Dockerfile @@ -0,0 +1,31 @@ +#===- 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. +# +#===----------------------------------------------------------------------===// +# Stage 1. Check out LLVM source code and run the build. +FROM nvidia/cuda:8.0-devel as builder +LABEL maintainer "LLVM Developers" +# 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 at /tmp/clang-install/. +RUN /tmp/scripts/build_install_llvm.sh ${buildscript_args} + + +# Stage 2. Produce a minimal release image with build results. +FROM nvidia/cuda:8.0-devel +LABEL maintainer "LLVM Developers" +# Copy clang installation into this container. +COPY --from=builder /tmp/clang-install/ /usr/local/ +# C++ standard library and binutils are already included in the base package. |

