From 81cb8cd680723e1c74004bcdcdd3319cc08d9e1b Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Wed, 22 May 2019 22:39:50 -0700 Subject: [PATCH] Fix Docker builds to be faster for container restarts --- Dockerfile | 3 ++- pom.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index be5a62e..898e622 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,5 @@ FROM openjdk:8-jdk MAINTAINER Billy Brawner ADD . /usr/share/budget/budget-api WORKDIR /usr/share/budget/budget-api -ENTRYPOINT ["/usr/share/budget/budget-api/mvnw", "spring-boot:run"] +RUN /usr/share/budget/budget-api/mvnw -Dmaven.test.skip=true package +ENTRYPOINT ["/usr/bin/java", "-jar", "/usr/share/budget/budget-api/target/budget-api.jar"] diff --git a/pom.xml b/pom.xml index 6af0166..12663d7 100644 --- a/pom.xml +++ b/pom.xml @@ -75,6 +75,7 @@ + budget-api ${project.basedir}/src/main/kotlin ${project.basedir}/src/test/kotlin @@ -109,5 +110,4 @@ -