forked from sarbojit4/nidhugg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (39 loc) · 897 Bytes
/
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
FROM ubuntu:18.04 as build
RUN \
apt-get update && \
apt-get --no-install-recommends -y install \
clang \
libboost-dev \
libboost-test-dev \
libboost-system-dev \
libc6 \
libc6-dev \
libstdc++6 \
autoconf \
automake \
python3 \
llvm \
llvm-dev \
libffi-dev \
libz-dev \
make
COPY . /nidhugg
RUN \
/bin/bash -c \
"cd /nidhugg && \
autoreconf --install && \
./configure --prefix=/usr/local/ CXXFLAGS=-O3 && \
make -j6 && \
make install"
FROM ubuntu:18.04
RUN \
apt-get update && \
apt-get --no-install-recommends -y install \
clang \
libboost-system1.65.1 \
libllvm6.0 \
python3 \
vim-tiny && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY --from=build /usr/local/bin/nidhugg* /usr/local/bin/
WORKDIR /root