You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2020/01/20 21:49:38 UTC

[juneau-petstore] 29/48: Added Dockerfile for building and running petstore app

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 <is...@mahindracomviva.com>
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