From 1df0c0e7ba6a049eb6d560b9fe8de92ab3dd2013 Mon Sep 17 00:00:00 2001 From: Andrew Daugherity Date: Fri, 2 Jun 2023 16:49:42 -0500 Subject: [PATCH 1/2] add libffi-dev dep, fixes #24 Without this, it fails to build a native ffi gem and falls back on a bundled libffi which is too old to support aarch64. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index bf04ff4..96a9d02 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ RUN apt-get update && \ libfontconfig \ libxml2-dev \ libxslt1-dev \ + libffi-dev \ make \ python3-pip \ ruby \ From 423e6eee46450ab720503c35097d62f25b443d34 Mon Sep 17 00:00:00 2001 From: Andrew Daugherity Date: Fri, 2 Jun 2023 16:50:32 -0500 Subject: [PATCH 2/2] don't delete & re-fetch apt repos in every step --- Dockerfile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 96a9d02..fb57641 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,8 +25,7 @@ RUN apt-get update && \ python3-pip \ ruby \ ruby-dev \ - ruby-bundler && \ - rm -rf /var/lib/apt/lists/* + ruby-bundler # Install Gauntlt RUN gem install rake @@ -43,10 +42,8 @@ RUN wget https://github.com/Arachni/arachni/releases/download/v1.5.1/${ARACHNI_V ln -s /usr/local/${ARACHNI_VERSION}/bin/* /usr/local/bin/ # Nikto -RUN apt-get update && \ - apt-get install -y libtimedate-perl \ - libnet-ssleay-perl && \ - rm -rf /var/lib/apt/lists/* +RUN apt-get install -y libtimedate-perl \ + libnet-ssleay-perl RUN git clone --depth=1 https://github.com/sullo/nikto.git && \ cd nikto/program && \ @@ -73,12 +70,14 @@ RUN tar xvfz dirb222.tar.gz > /dev/null && \ ENV DIRB_WORDLISTS /opt/dirb222/wordlists # nmap -RUN apt-get update && \ - apt-get install -y nmap && \ - rm -rf /var/lib/apt/lists/* +RUN apt-get install -y nmap # sslyze RUN pip install sslyze ENV SSLYZE_PATH /usr/local/bin/sslyze +# cleanup downloaded debs & repo lists +RUN apt-get clean && \ + rm -rf /var/lib/apt/lists/* + ENTRYPOINT [ "/usr/local/bin/gauntlt" ]