about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-02-16 18:00:04 +0100
committervanhauser-thc <vh@thc.org>2021-02-16 18:00:04 +0100
commita4bafb6e11b613a20d89a7f1da4806476a50eb8a (patch)
tree4cfab70809eb685fbce13d01e7da31d4571dede8 /Dockerfile
parent3275c412b6458be0ebe90b95aff9c70e2abdde20 (diff)
downloadafl-dyninst-a4bafb6e11b613a20d89a7f1da4806476a50eb8a.tar.gz
dockerfile enhancements
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile22
1 files changed, 11 insertions, 11 deletions
diff --git a/Dockerfile b/Dockerfile
index a632b31..998ffc7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,10 +9,13 @@ RUN apt-get update && apt-get -y upgrade && apt-get -y install \
         make \
         cmake \
         git \
+        gdb \
         ca-certificates \
         tar \
         gzip \
         vim \
+        joe \
+        wget \
         curl \
         apt-utils \
         libelf-dev \
@@ -24,27 +27,24 @@ RUN apt-get update && apt-get -y upgrade && apt-get -y install \
         libtbb-dev \
     && apt-get -y autoremove && rm -rf /var/lib/apt/lists/*
 
-RUN git clone https://github.com/dyninst/dyninst \
+RUN git clone --depth=1 https://github.com/dyninst/dyninst \
         && cd dyninst && mkdir build && cd build \
         && cmake .. \
-        && make \
+        && make -j3 \
         && make install
 
-RUN git clone https://github.com/vanhauser-thc/AFLplusplus \
+RUN git clone --depth=1 https://github.com/AFLplusplus/AFLplusplus \
         && cd AFLplusplus \
         && make source-only \
-        && make install \
-        && cd ..
-
-RUN mkdir -p /path/to/dyninst/ && ln -s /dyninst/build /path/to/dyninst/build-directory
+        && make install
 
-RUN git clone https://github.com/vanhauser-thc/afl-dyninst \
+RUN git clone --depth=1 https://github.com/vanhauser-thc/afl-dyninst \
         && cd afl-dyninst \
         && ln -s ../AFLplusplus afl \
         && make \
-        && make install \
-        && cd .. \
-        && echo "/usr/local/lib" > /etc/ld.so.conf.d/dyninst.conf && ldconfig \
+        && make install
+
+RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/dyninst.conf && ldconfig \
         && echo "export DYNINSTAPI_RT_LIB=/usr/local/lib/libdyninstAPI_RT.so" >> .bashrc
 
 RUN rm -rf afl-dyninst AFLplusplus dyninst