-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mehmet Arı
committed
Oct 19, 2020
1 parent
8b9a651
commit d62bc7d
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This file is a template, and might need editing before it works on your project. | ||
FROM maven:3.5-jdk-11 as BUILD | ||
|
||
COPY . /usr/src/app | ||
RUN mvn --batch-mode -f /usr/src/app/pom.xml clean package | ||
|
||
FROM openjdk:11-jdk | ||
ENV PORT 4567 | ||
EXPOSE 4567 | ||
COPY --from=BUILD /usr/src/app/target /opt/target | ||
WORKDIR /opt/target | ||
|
||
CMD ["/bin/bash", "-c", "find -type f -name '*-with-dependencies.jar' | xargs java -jar"] |