Dockerfile内容如下:
FROM ubuntu:24.04
# apt国内apt源
ADD *.sources /etc/apt/sources.list.d/
# 更新软件包源信息
RUN apt update --fix-missing
# 正常显示中文目录所必须
ENV LC_ADDRESS=C.UTF-8 LC_NAME=C.UTF-8 LC_MONETARY=C.UTF-8 LC_PAPER=C.UTF-8 LANG=C.UTF-8
ENV LC_IDENTIFICATION=C.UTF-8 LC_TELEPHONE=C.UTF-8 LC_MEASUREMENT=C.UTF-8 LC_TIME=C.UTF-8 LC_NUMERIC=C.UTF-8
# 安装根证书
RUN apt install -y ca-certificates
# 补全缺失的文件
RUN bash -c 'echo -e "y\ny\ny\n" | unminimize'
# kde的两款重要gui软件
RUN apt install -y kate konsole
# kde提供的集成开发环境kdevelop
RUN apt install -y kdevelop kdevelop-python git
# build工具
RUN apt install -y build-essential cmake cmake-gui
# 安装中文字体
RUN apt install -y fonts-wqy-zenhei
# 使能:add-apt-repository
RUN apt install -y software-properties-common
# 添加火狐浏览器的软件源
RUN add-apt-repository ppa:mozillateam/ppa
# 安装火狐浏览器
RUN apt install -y firefox-esr
# 我们增加这一行防止在image构建过程中产生交互
ARG DEBIAN_FRONTEND=noninteractive
RUN apt install -y wget
# 安装vscode
# 启动vscode使用命令:DONT_PROMPT_WSL_INSTALL=1 code --no-sandbox --user-data-dir /root
RUN wget https://vscode.download.prss.microsoft.com/dbazure/download/stable/e54c774e0add60467559eb0d1e229c6452cf8447/code_1.97.2-1739406807_amd64.deb \
&& apt install -y ./code_1.97.2-1739406807_amd64.deb \
&& rm -f ./code_1.97.2-1739406807_amd64.deb
# 安装expect和pyton3
RUN apt install -y expect python3
RUN apt install -y apt-file man
RUN apt-file update
RUN apt install -y fonts-wqy-*
RUN apt install -y file
RUN apt install -y ninja-build
RUN apt install -y bash-completion
RUN apt install -y qemu-system-gui
RUN apt install -y qemu-system-x86
RUN apt install -y qemu-system-arm
RUN apt install -y gcc-aarch64-linux-gnu
RUN apt install -y g++-aarch64-linux-gnu
RUN apt install -y qemu-user-static
# 手动编译安装gittyup
RUN bash -c 'DISPLAY=192.168.3.5:0 konsole'
# ssh服务
RUN apt install -y openssh-server
RUN mkdir -pv /run/sshd
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN echo 'root:test' | chpasswd
CMD ["/usr/sbin/sshd", "-D"]
RUN apt install -y iputils-ping
# 文件同步工具
RUN apt install -y rsync
# ip配置和测试工具:ifconfig + ip link 等:下面这几个工具是把容器配置成NAT软路由用的。需要使用的网络是macvlan。
RUN apt install -y net-tools iproute2
RUN apt install -y tcpdump iptables
# 文本编辑器
RUN apt install -y vim
Content type
Image
Digest
sha256:6bfe7040d…
Size
2.1 GB
Last updated
over 1 year ago
docker pull reechand/tools