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 @@ -