blob: 597ccfeb4f23dfce6d9ef939577efd9cc8d3ef6f [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
21# Arguments to pass to build_install_clang.sh.
22ARG buildscript_args
23
24# Run the build. Results of the build will be available as /tmp/clang.tar.gz.
25ADD scripts/build_install_llvm.sh /tmp
26RUN /tmp/build_install_llvm.sh ${buildscript_args}