blob: be077f59f48a49d6522f5de49e5184ab9d579367 [file] [log] [blame]
Ilya Biryukovaf351da2017-06-30 09:46:45 +00001#===- 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
13FROM ubuntu
14
15# FIXME: Change maintainer name
16LABEL maintainer "Maintainer <maintainer@email>"
17
18# FIXME: Install llvm/clang build dependencies. Including compiler to
19# build stage1, cmake, subversion, ninja, etc.
20
Ilya Biryukov8b62e082017-09-15 13:35:54 +000021ADD checksums /tmp/checksums
22ADD scripts /tmp/scripts
23
24# Arguments passed to build_install_clang.sh.
Ilya Biryukovaf351da2017-06-30 09:46:45 +000025ARG buildscript_args
26
27# Run the build. Results of the build will be available as /tmp/clang.tar.gz.
Ilya Biryukov8b62e082017-09-15 13:35:54 +000028RUN /tmp/scripts/build_install_llvm.sh ${buildscript_args}