diff --git a/dispatcher/Dockerfile b/dispatcher/Dockerfile index c95163f..a047d9b 100644 --- a/dispatcher/Dockerfile +++ b/dispatcher/Dockerfile @@ -4,7 +4,9 @@ ENV HOME=/home/app RUN mkdir -p ${HOME} && mkdir -p ${HOME}/dispatcher +WORKDIR ${HOME}/dispatcher + ADD ./dispatcher ${HOME}/dispatcher -RUN gradle clean build -p ${HOME}/dispatcher +RUN gradle clean build -x test CMD ["java", "-jar", "/home/app/dispatcher/build/libs/dispatcher-0.0.1.jar"] \ No newline at end of file diff --git a/node/Dockerfile b/node/Dockerfile index e5056d6..aee616f 100644 --- a/node/Dockerfile +++ b/node/Dockerfile @@ -2,9 +2,10 @@ FROM gradle:7.6-jdk17 AS build ENV HOME=/home/app -ADD ./properties/settings.xml /usr/share/maven/ref/ +RUN mkdir -p ${HOME} && mkdir -p ${HOME}/node ADD ./node ${HOME}/node -RUN gradle clean build -p ${HOME}/node +WORKDIR ${HOME}/node +RUN gradle clean build -x test CMD ["java", "-jar", "/home/app/node/build/libs/node-0.0.1.jar"] \ No newline at end of file