Browse Source

Use maven without the wrapper in dockerfile

Arkadiusz Ryś 2 years ago
parent
commit
390fa7201e
1 changed files with 3 additions and 4 deletions
  1. 3 4
      Dockerfile

+ 3 - 4
Dockerfile

@@ -1,7 +1,6 @@
 FROM eclipse-temurin:20-jdk-jammy
 WORKDIR /app
-#COPY .mvn/ .mvn
-COPY mvnw pom.xml ./
-RUN ./mvnw dependency:resolve
+COPY pom.xml ./
+RUN mvn dependency:resolve
 COPY src ./src
-CMD ["./mvnw", "spring-boot:run"]
+CMD ["mvn", "spring-boot:run"]