diff --git a/Dockerfile b/Dockerfile index 2dbfce412..1fc670953 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ COPY src ./src RUN ./mvnw clean package -DskipTests # Copy the JAR file to the app directory -COPY target/*.jar app.jar +COPY /app/target/spring-petclinic-3.3.0-SNAPSHOT.jar app.jar # Run the jar file CMD ["java", "-jar", "app.jar"] diff --git a/docker-compose_spring-petclinic.yml b/docker-compose_spring-petclinic.yml index 4187c4fe8..81bd88661 100644 --- a/docker-compose_spring-petclinic.yml +++ b/docker-compose_spring-petclinic.yml @@ -52,6 +52,7 @@ services: - jenkins_data:/var/jenkins_home - ./jenkins.yaml:/var/jenkins_home/casc_configs/jenkins.yaml - /var/run/docker.sock:/var/run/docker.sock + - ./target:/var/jenkins_home/target networks: - custom-network