FROM docker.io/library/ubuntu:latest # 安装开发工具(合并RUN层,减少镜像大小) RUN apt-get update && apt-get install -y \ build-essential gdb git\ openssh-server \ bash sudo \ curl wget \ ca-certificates \ apt remove --purge curl -y && apt autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*