summaryrefslogtreecommitdiffstats
path: root/llvm/utils/docker/example/build
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/docker/example/build')
-rw-r--r--llvm/utils/docker/example/build/Dockerfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/llvm/utils/docker/example/build/Dockerfile b/llvm/utils/docker/example/build/Dockerfile
new file mode 100644
index 00000000000..597ccfeb4f2
--- /dev/null
+++ b/llvm/utils/docker/example/build/Dockerfile
@@ -0,0 +1,26 @@
+#===- llvm/utils/docker/example/build/Dockerfile -------------------------===//
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+#===----------------------------------------------------------------------===//
+# This is an example Dockerfile to build an image that compiles clang.
+# Replace FIXMEs to prepare your own image.
+
+# FIXME: Replace 'ubuntu' with your base image
+FROM ubuntu
+
+# FIXME: Change maintainer name
+LABEL maintainer "Maintainer <maintainer@email>"
+
+# FIXME: Install llvm/clang build dependencies. Including compiler to
+# build stage1, cmake, subversion, ninja, etc.
+
+# Arguments to pass to build_install_clang.sh.
+ARG buildscript_args
+
+# Run the build. Results of the build will be available as /tmp/clang.tar.gz.
+ADD scripts/build_install_llvm.sh /tmp
+RUN /tmp/build_install_llvm.sh ${buildscript_args}
OpenPOWER on IntegriCloud