Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Added Dockerfile for building and running petstore app
- Loading branch information
COMVIVA\ishita.singh
committed
Oct 30, 2019
1 parent
98a90f3
commit 9a3c04cb2882336b227ec943894ebffac0e7fc7c
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 @@ | ||
FROM maven:3.5-jdk-8 as build | ||
|
||
COPY . . | ||
|
||
RUN mvn clean package | ||
|
||
FROM java:8 | ||
|
||
COPY --from=build ./juneau-petstore-server/target/juneau-petstore-server-8.1.2-SNAPSHOT.war ./run.war | ||
|
||
EXPOSE 5000 | ||
|
||
ENTRYPOINT ["java","-jar","run.war"] |