Skip to content

Commit

Permalink
added Dockerfile for worker app
Browse files Browse the repository at this point in the history
  • Loading branch information
stefkor committed Jul 21, 2022
1 parent 2432efa commit 55fd3ff
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions worker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM maven:3.8.6-eclipse-temurin-18-alpine

WORKDIR /app

COPY . .

RUN mvn package -DskiptTests && \
mv target/worker-jar-with-dependencies.jar /run/worker.jar && \
rm -rf /app/*

CMD java -jar /run/worker.jar

0 comments on commit 55fd3ff

Please sign in to comment.