Skip to content

Commit

Permalink
move package
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Apr 26, 2024
1 parent 2a6adf5 commit c85e1ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ FROM openjdk:22-slim
WORKDIR /worker
COPY . .
RUN chmod +x ./mvnw
RUN ./mvnw clean package
RUN mv ./target/worker-0.1.0.jar ./worker.jar
RUN chmod +x ./worker.jar
EXPOSE 9090
VOLUME /worker/actions
ENTRYPOINT ["./mvnw", "clean", "spring-boot:run"]
ENTRYPOINT ["java", "-jar", "./worker.jar"]

0 comments on commit c85e1ec

Please sign in to comment.