forked from AngoraFuzzer/Angora
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
28 lines (22 loc) · 736 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
FROM ubuntu:16.04
RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y git build-essential wget zlib1g-dev golang-go python-pip python-dev build-essential cmake && \
apt-get clean
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PIN_ROOT=/pin-3.7-97619-g0d0c92f4f-gcc-linux \
GOPATH=/go \
PATH=/clang+llvm/bin:/usr/local/cargo/bin:/angora/bin/:/go/bin:$PATH \
LD_LIBRARY_PATH=/clang+llvm/lib:$LD_LIBRARY_PATH
RUN mkdir -p angora
COPY . angora
WORKDIR angora
RUN ./build/install_rust.sh
RUN PREFIX=/ ./build/install_llvm.sh
RUN ./build/install_tools.sh
RUN ./build/build.sh
RUN ./build/install_pin_mode.sh
VOLUME ["/data"]
WORKDIR /data
ENTRYPOINT [ "/opt/env.init" ]