Skip to content

Commit

Permalink
fix: remake Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
BulatRuslanovich committed Oct 18, 2024
1 parent 59c414a commit 701ce86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dispatcher/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
5 changes: 3 additions & 2 deletions node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 701ce86

Please sign in to comment.