Explorar o código

refactor: 基础镜像更新

fanyanpeng %!s(int64=2) %!d(string=hai) anos
pai
achega
00171d948f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -7,9 +7,9 @@ WORKDIR /app
 # Copy the pom.xml and the project files to the container
 ADD ./pom.xml pom.xml
 ADD settings.xml  /usr/share/maven/conf/settings.xml
-RUN  mvn install -Dmaven.repo.local=./.m2
+RUN mvn dependency:go-offline
 
-COPY . .
+COPY src /app/src
 # Build the application using Maven
 RUN mvn clean package -DskipTests