Ver código fonte

refactor: 基础镜像更新

fanyanpeng 1 ano atrás
pai
commit
00171d948f
1 arquivos alterados com 2 adições e 2 exclusões
  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