Fix Docker builds to be faster for container restarts
This commit is contained in:
parent
f27a441b93
commit
81cb8cd680
2 changed files with 3 additions and 2 deletions
|
@ -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"]
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue