Files
IPV6/Dockerfile
2025-09-09 08:57:01 +08:00

20 lines
565 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 使用基础镜像(根据需要选择合适的版本)
FROM debian:bullseye-slim # 或 ubuntu:22.04
# 设置非交互模式,避免安装过程中出现交互提示
ENV DEBIAN_FRONTEND=noninteractive
# 更新软件源并安装iproute2同时清理缓存减小镜像体积
RUN apt-get update && \
apt-get install -y --no-install-recommends \
iproute2 \ # 包含ip命令的工具包
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# 可选:设置工作目录
WORKDIR /app
# 可选:添加启动命令
CMD ["bash"]