aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/docker/Dockerfile
diff options
context:
space:
mode:
authorJennie Jia <Jennie.Jia@amdocs.com>2018-08-08 17:13:32 +0000
committerPrudence Au <prudence.au@amdocs.com>2018-08-08 15:01:23 -0400
commit76c55b6805cb8a6ab274c2e7723be1efbaaeb294 (patch)
tree140a1dab2f873300d6f4c89d4e296e2edc443b22 /src/main/docker/Dockerfile
parent9338362c1605a84a2b8e0a00ad1d65e14789bd6a (diff)
Add POMBA SDC Context Builder Dockerfile
Issue-ID: LOG-598 Change-Id: Ic73e56046a8a9c1e6da3e9ac2fb41ed62d27bf34 Signed-off-by: Jennie Jia <Jennie.Jia@amdocs.com>
Diffstat (limited to 'src/main/docker/Dockerfile')
-rw-r--r--src/main/docker/Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile
new file mode 100644
index 0000000..41f2f1a
--- /dev/null
+++ b/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 target/pomba-sdc-context-builder.jar $MICROSERVICE_HOME/lib/
+COPY config/ $MICROSERVICE_HOME/config/
+ADD target/startService.sh $MICROSERVICE_HOME/bin/
+
+RUN chmod 755 $MICROSERVICE_HOME/config/*
+RUN chmod 755 $MICROSERVICE_HOME/lib/*
+RUN chmod 755 $MICROSERVICE_HOME/bin/*
+
+CMD ["/opt/app/bin/startServer.sh"] \ No newline at end of file