summaryrefslogtreecommitdiffstats
path: root/llvm/utils/docker/example/build/Dockerfile
blob: 597ccfeb4f23dfce6d9ef939577efd9cc8d3ef6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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