# 依赖的 DockerFile ## cnlym/maven:3-jdk-11-alpine-aliyun 相比官网镜像区别只是更换了maven源,对于国内环境且 `第一次运行`(`cicd`中未挂载mvn仓库缓存)会快一些。 ``` FROM maven:3-jdk-11 # self center repository COPY settings.xml /usr/share/maven/conf COPY settings.xml /usr/share/maven/ref/settings-docker.xml COPY settings.xml /root/.m2/settings-docker.xml #COPY repository /root/.m2/repository ``` docker build -t cnlym/maven:3-jdk-11-alpine-aliyun .