This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau-petstore.git

commit 9a3c04cb2882336b227ec943894ebffac0e7fc7c
Author: COMVIVA\ishita.singh <[email protected]>
AuthorDate: Wed Oct 30 22:21:26 2019 +0530

    Added Dockerfile for building and running petstore app
---
 Dockerfile | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..16bf7af
--- /dev/null
+++ b/Dockerfile
@@ -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"]
\ No newline at end of file

Reply via email to