summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authormukesh.paliwal <mukesh.paliwal1@huawei.com>2021-02-22 08:32:37 +0530
committermukesh.paliwal <mukesh.paliwal1@huawei.com>2021-02-22 14:32:23 +0530
commitd78fcd674a6e175f308715e329ba0a71afa9e81f (patch)
tree6984ee59dbc4cb9e746af28051d66b8aa901e114 /Dockerfile
parent132fd925fc1f879627a643f9852b7843553ec3a7 (diff)
split mso-oof-adapter from SO, docker build
Issue-ID: SO-3522 Signed-off-by: mukesh.paliwal <mukesh.paliwal1@huawei.com> Change-Id: Ic739c20fa124da7cacf6718ba60f7171f8c9b8b1
Diffstat (limited to 'Dockerfile')
-rwxr-xr-xDockerfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100755
index 0000000..751e08c
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,31 @@
+FROM adoptopenjdk/openjdk11:jre-11.0.8_10-alpine
+
+ARG JAR_FILE=*.jar
+ARG http_proxy
+ENV HTTP_PROXY=$http_proxy
+ENV http_proxy=$HTTP_PROXY
+ARG https_proxy
+ENV HTTPS_PROXY=$https_proxy
+ENV https_proxy=$HTTPS_PROXY
+USER root
+RUN mkdir -p /app/config
+RUN mkdir -p /app/certificates
+RUN mkdir -p /app/logs
+RUN mkdir -p /app/ca-certificates
+RUN apk update && apk add apache2-utils
+
+COPY target/${JAR_FILE} /app/app.jar
+
+COPY configs/logging/logback-spring.xml /app
+COPY scripts/start-app.sh /app
+COPY scripts/wait-for.sh /app
+COPY ca-certificates/onap-ca.crt /app/ca-certificates/onap-ca.crt
+#RUN chown -R so:so /app
+#USER so
+# Springboot configuration (required)
+VOLUME /app/config
+# Root certificates (optional)
+VOLUME /app/ca-certificates
+WORKDIR /app
+ENTRYPOINT ["/app/start-app.sh"]
+