Browse Source

fix: 文件夹不存在

fanyanpeng 3 years ago
parent
commit
3558056593
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -16,7 +16,7 @@ WORKDIR $WORK_PATH
 
 RUN git clone --branch $GIT_BRANCH $GIT_URL .
 
-RUN cp settings.xml /root/.m2/settings.xml
+RUN mkdir /root/.m2 && cp settings.xml /root/.m2/settings.xml
 
 # 多线程下载依赖,只要pom文件不改变,依赖不会重复下载
 RUN mvn clean install -DskipTests -DfinalName=$PROJECT_NAME