Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions kali/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down