-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (29 loc) · 927 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
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y \
gcc git autoconf libtool make clang libc6-dbg \
ninja-build liblzma-dev libz-dev pkg-config cmake binutils wget tar \
nasm curl \
libtool-bin gettext \
gdb valgrind vim llvm git
WORKDIR /src
# Build libprotobuf
WORKDIR /src
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protobuf-all-3.14.0.tar.gz
RUN tar -xf protobuf-all-3.14.0.tar.gz
WORKDIR /src/protobuf-3.14.0
RUN ./configure && \
make -j8 && \
make install
RUN ldconfig
# Build libprotobuf-mutator
WORKDIR /src
RUN git clone https://github.com/google/libprotobuf-mutator
WORKDIR /src/libprotobuf-mutator
RUN git checkout "v1.0" && mkdir build && \
cd build && \
cmake .. -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug && \
ninja && \
ninja install
WORKDIR /src/fuzzer
COPY . .
RUN bash