Ilya Biryukov | af351da | 2017-06-30 09:46:45 +0000 | [diff] [blame] | 1 | #===- llvm/utils/docker/example/build/Dockerfile -------------------------===// |
| 2 | # |
| 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
| 5 | # This file is distributed under the University of Illinois Open Source |
| 6 | # License. See LICENSE.TXT for details. |
| 7 | # |
| 8 | #===----------------------------------------------------------------------===// |
| 9 | # This is an example Dockerfile to build an image that compiles clang. |
| 10 | # Replace FIXMEs to prepare your own image. |
| 11 | |
| 12 | # FIXME: Replace 'ubuntu' with your base image |
| 13 | FROM ubuntu |
| 14 | |
| 15 | # FIXME: Change maintainer name |
| 16 | LABEL maintainer "Maintainer <maintainer@email>" |
| 17 | |
| 18 | # FIXME: Install llvm/clang build dependencies. Including compiler to |
| 19 | # build stage1, cmake, subversion, ninja, etc. |
| 20 | |
Ilya Biryukov | 8b62e08 | 2017-09-15 13:35:54 +0000 | [diff] [blame^] | 21 | ADD checksums /tmp/checksums |
| 22 | ADD scripts /tmp/scripts |
| 23 | |
| 24 | # Arguments passed to build_install_clang.sh. |
Ilya Biryukov | af351da | 2017-06-30 09:46:45 +0000 | [diff] [blame] | 25 | ARG buildscript_args |
| 26 | |
| 27 | # Run the build. Results of the build will be available as /tmp/clang.tar.gz. |
Ilya Biryukov | 8b62e08 | 2017-09-15 13:35:54 +0000 | [diff] [blame^] | 28 | RUN /tmp/scripts/build_install_llvm.sh ${buildscript_args} |