FROM debian:bookworm-slim
MAINTAINER "lantian316@163.com"
RUN cp /etc/apt/sources.list.d/debian.sources /etc/apt/sources.list.d/debian.sources.bak \
&& sed -i 's@deb.debian.org@repo.huaweicloud.com@g' /etc/apt/sources.list.d/debian.sources \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y ca-certificates \
&& apt-get install -y iperf3 \
&& apt-get install -y bash \
&& apt-get install -y bash-doc \
&& apt-get install -y bash-completion \
&& apt-get install -y openssh-client \
&& apt-get install -y ca-certificates \
&& apt-get install -y procps \
&& apt-get install -y nmap \
&& apt-get install -y iftop \
&& apt-get install -y iproute2 \
&& apt-get install -y ethtool \
&& apt-get install -y curl \
&& apt-get install -y zip \
&& apt-get install -y unzip \
&& apt-get install -y dos2unix \
&& apt-get install -y rsync \
&& apt-get install -y wget \
&& apt-get install -y tree \
&& apt-get install -y vim \
&& apt-get install -y tcpdump \
&& apt-get install -y dnsutils \
&& apt-get install -y redis \
&& apt-get install -y nfs-common \
&& apt-get install -y bash-completion \
&& apt-get install -y git \
&& apt-get install -y apache2-utils \
&& apt-get install -y telnet \
&& apt-get install -y nmap \
&& apt-get install -y ncat \
&& apt-get install -y tcpdump \
&& apt-get install -y ssh \
&& apt-get install -y vim \
&& apt-get install -y tzdata \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& echo "export PS1='[\u@\h \W]\$ '" >> /root/.bashrc \
&& echo "alias ll='ls $LS_OPTIONS -l'" >> /root/.bashrc
COPY Dockerfile /
WORKDIR /
CMD [ "tail", "-f" ]
docker build -t registry.cn-shenzhen.aliyuncs.com/stonek8s/tools:20231219_dockerfileInRoot_debian12 .