-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
32 lines (29 loc) · 1.32 KB
/
Dockerfile
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
28
29
30
31
32
ARG UBUNTU_VERSION=18.04
FROM ubuntu:$UBUNTU_VERSION
RUN set -x \
&& : Remove pre-bundled libunwind \
&& find /usr -name "*libunwind*" -delete \
&& apt update \
&& apt install -y --no-install-recommends apt-transport-https gnupg2 ca-certificates \
&& echo "deb https://dl.bintray.com/sbt/debian /" > /etc/apt/sources.list.d/sbt.list \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 \
&& apt update \
&& apt install -y --no-install-recommends \
g++ openjdk-8-jdk-headless sbt cmake make curl git \
libgc-dev libunwind8-dev libre2-dev \
&& rm -rf /var/lib/apt/lists/*
ARG LLVM_VERSION=6.0
ENV LLVM_VERSION=$LLVM_VERSION
# LLVM dev versions do not have a "-x.y" version suffix.
ARG LLVM_DEB_COMPONENT=-$LLVM_VERSION
RUN set -x \
&& . /etc/lsb-release \
&& echo "deb https://apt.llvm.org/$DISTRIB_CODENAME/ llvm-toolchain-$DISTRIB_CODENAME$LLVM_DEB_COMPONENT main" > /etc/apt/sources.list.d/llvm.list \
&& apt-key adv --fetch-keys https://apt.llvm.org/llvm-snapshot.gpg.key \
&& apt update \
&& apt install -y --no-install-recommends \
clang-$LLVM_VERSION clang-format-$LLVM_VERSION \
libclang-$LLVM_VERSION-dev llvm-$LLVM_VERSION-dev \
&& rm -rf /var/lib/apt/lists/*
ENV PATH=$PATH:/usr/lib/llvm-$LLVM_VERSION/bin
WORKDIR /src