From 6719cc74d27df6668174d62d587de693bc819e34 Mon Sep 17 00:00:00 2001 From: Lihan Date: Sat, 27 Jul 2024 23:19:30 -0400 Subject: [PATCH] test --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2dbfce412..2a1eed127 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,10 +12,12 @@ COPY mvnw pom.xml ./ COPY src ./src # Package the application -RUN ./mvnw clean package -DskipTests +RUN ./mvnw clean package -Dmaven.test.skip=true +RUN ls -alh /app/target/ # Copy the JAR file to the app directory -COPY target/*.jar app.jar +WORKDIR /app +COPY /var/jenkins_home/workspace/ing-petclinic_use_docker_compose/target/spring-petclinic-3.3.0-SNAPSHOT.jar /app/app.jar # Run the jar file CMD ["java", "-jar", "app.jar"]