summaryrefslogtreecommitdiffstats
path: root/pomba/service-decomposition/src/main/docker/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'pomba/service-decomposition/src/main/docker/Dockerfile')
-rw-r--r--pomba/service-decomposition/src/main/docker/Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/pomba/service-decomposition/src/main/docker/Dockerfile b/pomba/service-decomposition/src/main/docker/Dockerfile
new file mode 100644
index 0000000..55a7b68
--- /dev/null
+++ b/pomba/service-decomposition/src/main/docker/Dockerfile
@@ -0,0 +1,19 @@
+FROM anapsix/alpine-java:jre8
+
+ARG MICROSERVICE_HOME=/opt/app/
+
+# Build up the deployment folder structure
+RUN mkdir -p $MICROSERVICE_HOME
+RUN mkdir -p $MICROSERVICE_HOME/config/
+RUN mkdir -p $MICROSERVICE_HOME/lib/
+RUN mkdir -p $MICROSERVICE_HOME/bin/
+
+ADD pomba-service-decomposition.jar $MICROSERVICE_HOME/lib/
+ADD startService.sh $MICROSERVICE_HOME/bin/
+COPY config/ $MICROSERVICE_HOME/config/
+
+RUN chmod 755 $MICROSERVICE_HOME/config/*
+RUN chmod 755 $MICROSERVICE_HOME/lib/*
+RUN chmod 755 $MICROSERVICE_HOME/bin/*
+
+CMD ["/opt/app/bin/startService.sh"] \ No newline at end of file