Skip to content
Permalink
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.
@@ -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"]

0 comments on commit 9a3c04c

Please sign in to comment.