diff --git a/questiongenerator/Dockerfile b/questiongenerator/Dockerfile index 3c27189d..8c4e37dd 100644 --- a/questiongenerator/Dockerfile +++ b/questiongenerator/Dockerfile @@ -15,5 +15,5 @@ ARG DATABASE_PASSWORD ENV DATABASE_URL jdbc:postgresql://WIQ_DB:5432/wiq ENV DATABASE_USER $DATABASE_USER ENV DATABASE_PASSWORD $DATABASE_PASSWORD -COPY --from=build /questiongenerator/target/QuestionGenerator-1.0-SNAPSHOT.jar app.jar +COPY --from=build /questiongenerator/target/QuestionGenerator-1.0-SNAPSHOT-jar-with-dependencies.jar app.jar ENTRYPOINT ["java","-jar","app.jar"] \ No newline at end of file diff --git a/questiongenerator/pom.xml b/questiongenerator/pom.xml index e1a94aa6..8317bb33 100644 --- a/questiongenerator/pom.xml +++ b/questiongenerator/pom.xml @@ -46,17 +46,49 @@ runtime 42.6.1 - + + org.apache.maven.plugins + maven-assembly-plugin + 3.4.2 + maven-plugin + org.apache.maven.plugins - maven-compiler-plugin + maven-assembly-plugin + + + jar-with-dependencies + + + + Main + + + + + + make-assembly + package + + single + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.2.0 - 11 - 11 + + + Main + +