From 8dc7f3005d7a331f9e3f7b807284c2ecbf7dc1d6 Mon Sep 17 00:00:00 2001 From: Lihan Date: Sat, 27 Jul 2024 21:38:27 -0400 Subject: [PATCH] latest Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6a6ac343a..f6fb1b08b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,9 +13,10 @@ COPY src ./src # Package the application RUN ./mvnw clean package -Dmaven.test.skip=true +RUN ls -alh /app/target/ # This will list the contents of the target directory # Copy the JAR file to the app directory -COPY target/*.jar app.jar +COPY target/spring-petclinic-3.3.0-SNAPSHOT.jar app.jar # Run the jar file CMD ["java", "-jar", "app.jar"]