Fix Docker builds to be faster for container restarts

This commit is contained in:
Billy Brawner 2019-05-22 22:39:50 -07:00
parent f27a441b93
commit 81cb8cd680
2 changed files with 3 additions and 2 deletions

View file

@ -2,4 +2,5 @@ FROM openjdk:8-jdk
MAINTAINER Billy Brawner <billy@wbrawner.com>
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"]

View file

@ -75,6 +75,7 @@
</dependencies>
<build>
<finalName>budget-api</finalName>
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
<plugins>
@ -109,5 +110,4 @@
</plugin>
</plugins>
</build>
</project>