diff --git a/Dockerfile b/Dockerfile index eba094b..30740c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,9 @@ COPY pom.xml . COPY .mvn .mvn COPY mvnw . +# 给mvnw脚本添加执行权限 +RUN chmod +x ./mvnw + # 下载依赖(利用Docker缓存层) RUN ./mvnw dependency:go-offline -B