Update Dockerfile

This commit is contained in:
Nick Trochalakis
2025-06-19 05:17:01 -07:00
committed by GitHub
parent 4526a9065f
commit aa538a0b83
+36 -14
View File
@@ -1,13 +1,31 @@
# Use the latest Debian slim image
FROM debian:bullseye-slim FROM debian:bullseye-slim
# Set environment to non-interactive for apt
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
# Install common tools
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
bash \ bash \
screen \
tree \
ncat \
git\
wget\
zip \
unzip \
tar \
xz-utils \
jq \
lsof \
strace \
man \
manpages \
python3-venv \
build-essential \
nmap \
tcpdump \
iproute2 \
netcat \
socat \
whois \
traceroute \
curl \ curl \
vim \ vim \
nano \ nano \
@@ -15,15 +33,19 @@ RUN apt-get update && \
iputils-ping \ iputils-ping \
net-tools \ net-tools \
procps \ procps \
ca-certificates && \ ca-certificates \
sudo \
python3 \
python3-pip \
nodejs \
npm && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN useradd -ms /bin/bash debian && \
# Set the default shell usermod -aG sudo debian && \
echo 'debian ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN echo 'PS1="\u@sandbox:\w\$ "' >> /home/debian/.bashrc
SHELL ["/bin/bash", "-c"] SHELL ["/bin/bash", "-c"]
WORKDIR /home/debian
# Set working directory USER debian
WORKDIR /root CMD ["bash"]
# Set the default command to an interactive shell
CMD [ "bash" ]