From 9d8225cbec8ad7430350683de295dabe966210b2 Mon Sep 17 00:00:00 2001 From: Gijsbert van den Brink Date: Fri, 18 Nov 2016 11:00:35 +0100 Subject: [PATCH] Add Dockerfile and build script for the jpaserver-example. --- hapi-fhir-jpaserver-example/Dockerfile | 4 ++++ hapi-fhir-jpaserver-example/build-docker-image.sh | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 hapi-fhir-jpaserver-example/Dockerfile create mode 100755 hapi-fhir-jpaserver-example/build-docker-image.sh diff --git a/hapi-fhir-jpaserver-example/Dockerfile b/hapi-fhir-jpaserver-example/Dockerfile new file mode 100644 index 00000000000..1c26aefb5ad --- /dev/null +++ b/hapi-fhir-jpaserver-example/Dockerfile @@ -0,0 +1,4 @@ +FROM jetty:9-jre8-alpine +USER jetty:jetty +ADD ./target/hapi-fhir-jpaserver-example.war /var/lib/jetty/webapps/root.war +EXPOSE 8080 diff --git a/hapi-fhir-jpaserver-example/build-docker-image.sh b/hapi-fhir-jpaserver-example/build-docker-image.sh new file mode 100755 index 00000000000..6d1cfc3ca10 --- /dev/null +++ b/hapi-fhir-jpaserver-example/build-docker-image.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +mvn package && \ + docker build -t hapi-fhir/hapi-fhir-jpaserver-example . +