From b2dc648b14dd89ef77bbcb1ef37c821556e98a63 Mon Sep 17 00:00:00 2001 From: Lihan Date: Sat, 27 Jul 2024 21:40:15 -0400 Subject: [PATCH] latest Dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f6fb1b08b..4da6d371d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,9 +13,12 @@ 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 + +WORKDIR /app +RUN ls -alh /app/target/ # Copy the JAR file to the app directory +WORKDIR /app COPY target/spring-petclinic-3.3.0-SNAPSHOT.jar app.jar # Run the jar file