Dockerfile
常用命令
使用bash执行命令
SHELL ["/bin/bash", "-c"]
Debian镜像
设置时区
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata
修改镜像源
sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list \
&& sed -i s@/security.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
清理apt缓存
apt clean \
&& rm -rf /var/lib/apt/lists/*