https://github.com/pacoxu/dao-tomcat/tree/master/samples写了个简单的例子,找了个 ubuntu 的 aliyun 源
docker build .
Sending build context to Docker daemon 3.584kB
Step 1/3 : FROM ubuntu:xenial
xenial: Pulling from library/ubuntu
Digest: sha256:a4d8e674ee993e5ec88823391de828a5e9286a1597b731eaecaaf9066cfdf539
Status: Downloaded newer image for ubuntu:xenial
---> 13c9f1285025
Step 2/3 : COPY sources.list /etc/apt/sources.list
---> 93899785ec2a
Step 3/3 : RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
---> Running in 2369ec47a573
Get:1
http://mirrors.aliyun.com/ubuntu xenial InRelease [247 kB]
Get:2
http://mirrors.aliyun.com/ubuntu xenial-security InRelease [109 kB]
Get:3
http://mirrors.aliyun.com/ubuntu xenial-updates InRelease [109 kB]