summary refs log tree commit diff
path: root/src/etc/Dockerfile
blob: 83d54789ff3572a12b8ec6ae4ade1c6fa9d638a0 (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
27
FROM ubuntu:xenial

# curl
#   Download stage0, see src/bootstrap/bootstrap.py
# g++
#   Compile LLVM binding in src/rustllvm
# gdb
#   Used to run tests in src/test/debuginfo
# git
#   Get commit hash and commit date in version string
# make
#   Run build scripts in mk
# libedit-dev zlib1g-dev
#   LLVM dependencies as packaged in Ubuntu
#   (They are optional, but Ubuntu package enables them)
# llvm-3.7-dev (installed by llvm-3.7-tools)
#   LLVM
# llvm-3.7-tools
#   FileCheck is used to run tests in src/test/codegen

RUN apt-get update && apt-get -y install \
    curl g++ gdb git make \
    libedit-dev zlib1g-dev \
    llvm-3.7-tools cmake

RUN mkdir /build
WORKDIR /build