forked from R-Fuzz/symsan
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
27 lines (20 loc) · 820 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
FROM ubuntu:jammy
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
WORKDIR /workdir
COPY . /workdir/symsan
RUN apt-get update
RUN apt-get install -y cmake llvm-12 clang-12 libc++-12-dev libc++abi-12-dev python3-minimal python-is-python3 zlib1g-dev git joe libprotobuf-dev
RUN git clone --depth=1 https://github.com/AFLplusplus/AFLplusplus /workdir/aflpp
ENV LLVM_CONFIG=llvm-config-12
RUN cd /workdir/aflpp && CC=clang-12 CXX=clang++-12 make install
RUN apt-get install -y libz3-dev libgoogle-perftools-dev
RUN apt clean
RUN cd symsan/ && mkdir -p build && \
cd build && CC=clang-12 CXX=clang++-12 cmake -DCMAKE_INSTALL_PREFIX=. -DAFLPP_PATH=/workdir/aflpp ../ && \
make -j4 && make install
ENV KO_CC=clang-12
ENV KO_CXX=clang++-12
ENV KO_USE_FASTGEN=1