diff --git a/kali/Dockerfile b/kali/Dockerfile index c8b448a..ccf56cf 100644 --- a/kali/Dockerfile +++ b/kali/Dockerfile @@ -2,8 +2,28 @@ FROM kalilinux/kali-rolling ENV USER=root +RUN set -eux; \ + sed -i 's|https://http.kali.org|http://http.kali.org|' /etc/apt/sources.list || true; \ + apt-get clean; \ + apt-get update; \ + apt-get install -y --no-install-recommends ca-certificates; \ + sed -i 's|http://http.kali.org|https://http.kali.org|' /etc/apt/sources.list; \ + apt-get update --fix-missing; \ + apt-get -y full-upgrade + +# ------------------------------------------------------------------------------ +# 1) Base packages, Kali/Debian tools, and common deps +# ------------------------------------------------------------------------------ +# ------------------------------------------------------------------------------ +# 1) Base packages, Kali/Debian tools, and common deps +# ------------------------------------------------------------------------------ +RUN set -eux; \ + apt-get update; \ + apt-get install -y --no-install-recommends \ + sudo ca-certificates curl wget git zsh bash coreutils + # Install core services and additional desktop packages -RUN apt-get update && \ +RUN apt-get update && \ apt-get install -y --no-install-recommends \ openssh-server \ shellinabox \ @@ -50,7 +70,7 @@ RUN apt-get update && \ && rm -rf /var/lib/apt/lists/* # installing Kali Linux core tools (Comment this out if you want a smaller and faster image build) -RUN apt-get update && \ +RUN apt-get update --fix-missing && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ kali-linux-headless \ kali-linux-core \