From 4a5810c5e31173b80d05fece177a439392840daa Mon Sep 17 00:00:00 2001 From: Ismail Date: Thu, 5 Dec 2024 15:30:50 -0500 Subject: [PATCH] update docker file in response to the issue of outdated packages --- Dockerfile | 74 +++++++++++++++++++++++++++--------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6c11f83..1e84aa6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,53 +1,53 @@ -FROM debian:stretch-20170907 +# FROM debian:stretch-20170907 +FROM debian:bullseye ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && \ apt-get upgrade -y && \ - apt-get install -y apt-utils \ - forensics-all \ - foremost \ - binwalk \ - exiftool \ - outguess \ - pngtools \ - pngcheck \ - stegosuite \ - git \ - hexedit \ - python3-pip \ - python-pip \ - autotools-dev \ - automake \ - libevent-dev \ - bsdmainutils \ - ffmpeg \ - crunch \ - cewl \ - sonic-visualiser \ - xxd \ - atomicparsley && \ - pip3 install python-magic && \ - pip install tqdm + apt-get install -y --no-install-recommends \ + apt-utils \ + forensics-all \ + foremost \ + binwalk \ + exiftool \ + outguess \ + pngtools \ + pngcheck \ + stegosuite \ + git \ + hexedit \ + python3-pip \ + autotools-dev \ + automake \ + libevent-dev \ + bsdmainutils \ + ffmpeg \ + crunch \ + cewl \ + sonic-visualiser \ + xxd \ + atomicparsley && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +RUN pip3 install --no-cache-dir python-magic tqdm COPY install /tmp/install RUN chmod a+x /tmp/install/*.sh && \ - for i in /tmp/install/*.sh;do echo $i && $i;done && \ + for script in /tmp/install/*.sh; do /bin/bash "$script"; done && \ rm -rf /tmp/install -# Use this section to try new installation scripts. -# All previous steps will be cached -# -# COPY install_dev /tmp/install -# RUN find /tmp/install -name '*.sh' -exec chmod a+x {} + && \ -# for f in $(ls /tmp/install/* | sort );do /bin/sh $f;done && \ -# rm -rf /tmp/install - COPY examples /examples +# COPY scripts /opt/scripts +# RUN chmod a+x /opt/scripts/*.{sh,py} + COPY scripts /opt/scripts -RUN find /opt/scripts -name '*.sh' -exec chmod a+x {} + && \ - find /opt/scripts -name '*.py' -exec chmod a+x {} + +RUN if [ -d /opt/scripts ]; then \ + find /opt/scripts -type f \( -name '*.sh' -o -name '*.py' \) -exec chmod a+x {} +; \ + fi + ENV PATH="/opt/scripts:${PATH}" WORKDIR /data