FROM debian:stretch RUN cat < /etc/apt/sources.list deb http://mirrors.cloud.tencent.com/debian-archive/debian stretch main #deb http://mirrors.cloud.tencent.com/debian-archive/debian stretch-backports main #deb http://mirrors.cloud.tencent.com/debian-archive/debian stretch-backports-sloppy main #deb http://mirrors.cloud.tencent.com/debian-archive/debian stretch-proposed-updates main deb http://mirrors.cloud.tencent.com/debian-archive/debian-security stretch/updates main EOF RUN apt-get update && \ apt-get install -y git && \ rm -rf /var/lib/apt/lists/*