summaryrefslogtreecommitdiffstats
path: root/deliveries/Dockerfile.widgetms
diff options
context:
space:
mode:
Diffstat (limited to 'deliveries/Dockerfile.widgetms')
-rw-r--r--deliveries/Dockerfile.widgetms18
1 files changed, 18 insertions, 0 deletions
diff --git a/deliveries/Dockerfile.widgetms b/deliveries/Dockerfile.widgetms
new file mode 100644
index 00000000..16bf60b1
--- /dev/null
+++ b/deliveries/Dockerfile.widgetms
@@ -0,0 +1,18 @@
+# Large image
+# FROM openjdk:8-jdk
+# Very small image
+FROM frolvlad/alpine-oraclejdk8:slim
+
+# Arguments are supplied by build script;
+# the defaults below only support testing
+ARG WMS_JAR=build/widget-ms.jar
+# Launch script
+COPY start-wms-cmd.sh /
+# Wait script, which depends on nc
+COPY wait-for.sh /
+# Onejar
+COPY ${WMS_JAR} /app.jar
+RUN sh -c 'touch /app.jar'
+VOLUME /tmp
+ENV JAVA_OPTS=""
+CMD /start-wms-cmd.sh