From a28856bf1e12937caaaa21628acc39fc7f2f38a2 Mon Sep 17 00:00:00 2001 From: Pranshu Srivastava Date: Thu, 25 Jan 2024 10:31:01 +0000 Subject: [PATCH] fix: added mvn clean install to Dockerfile Signed-off-by: Pranshu Srivastava --- spring-petclinic/spring-petclinic-rest/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-petclinic/spring-petclinic-rest/Dockerfile b/spring-petclinic/spring-petclinic-rest/Dockerfile index b3cef83..e32f93b 100644 --- a/spring-petclinic/spring-petclinic-rest/Dockerfile +++ b/spring-petclinic/spring-petclinic-rest/Dockerfile @@ -7,6 +7,9 @@ WORKDIR /app # Install Maven RUN apt-get update && apt-get install -y maven +# Build the binary +RUN mvn clean install -Dmaven.test.skip=true + # Copy the current directory contents into the container at /app COPY . /app/ @@ -23,4 +26,4 @@ RUN chmod +x setup_ca.sh # Run the application when the container launches # CMD ["java", "-jar", ""] -CMD ["/bin/bash", "-c", "source ./setup_ca.sh && java -jar target/spring-petclinic-rest-3.0.2.jar"] \ No newline at end of file +CMD ["/bin/bash", "-c", "source ./setup_ca.sh && java -jar target/spring-petclinic-rest-3.0.2.jar"]