From a5c9b26d61e690de07ad539164283afce0a11331 Mon Sep 17 00:00:00 2001 From: Lihan Date: Sat, 27 Jul 2024 21:42:23 -0400 Subject: [PATCH] latest Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4da6d371d..2715b2a0e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ +ARG CACHEBUST=1 # Use an official OpenJDK runtime as a parent image FROM openjdk @@ -14,11 +15,10 @@ COPY src ./src # Package the application RUN ./mvnw clean package -Dmaven.test.skip=true -WORKDIR /app +# Verify the build output 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