-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
45 lines (39 loc) · 1.35 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
33
34
35
36
37
38
39
40
41
42
43
44
45
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 \
locales locales-all \
g++ openjdk-8-jdk-headless sbt cmake make curl git \
zlib1g-dev \
libgc-dev libunwind8-dev libre2-dev \
nlohmann-json-dev \
&& rm -rf /var/lib/apt/lists/*
ARG LOCALE=en_US.UTF-8
ENV LANG=$LOCALE
ENV LANGUAGE=$LOCALE
ENV LC_ALL=$LOCALE
ARG LLVM_VERSION=6.0
ENV LLVM_VERSION=$LLVM_VERSION
RUN set -x \
&& 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
##bindings-dev-package
# Install binding dependencies
RUN set -x \
&& apt update \
&& apt install -y --no-install-recommends \
libutf8proc-dev \
&& rm -rf /var/lib/apt/lists/*
##bindings-dev-package
WORKDIR /src