Merge "Release 5.1.2"
authorGervais-Martial Ngueko <gervais-martial.ngueko@intl.att.com>
Wed, 30 Sep 2020 16:44:01 +0000 (16:44 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 30 Sep 2020 16:44:01 +0000 (16:44 +0000)
src/main/docker/backend/Dockerfile

index 06a05ab..ebc1d57 100644 (file)
@@ -24,7 +24,7 @@
 FROM onap/integration-java11:7.1.0\r
 \r
 MAINTAINER "The Onap Team"\r
-LABEL Description="This immage contains alpine, openjdk 11 and clamp"\r
+LABEL Description="This image contains alpine, openjdk 11 and clamp"\r
 \r
 ARG http_proxy\r
 ARG https_proxy\r
@@ -32,7 +32,14 @@ ENV HTTP_PROXY=$http_proxy
 ENV HTTPS_PROXY=$https_proxy\r
 ENV http_proxy=$HTTP_PROXY\r
 ENV https_proxy=$HTTPS_PROXY\r
+USER root\r
+RUN mkdir /opt/clamp\r
+RUN chown -R onap:onap /opt/clamp\r
 \r
-VOLUME /app/config\r
+VOLUME /opt/clamp/config\r
 \r
-COPY onap-clamp-backend/clamp.jar /app/app.jar
\ No newline at end of file
+COPY --chown=onap:onap onap-clamp-backend/clamp.jar /opt/clamp/app.jar\r
+\r
+USER onap\r
+WORKDIR /opt/clamp/\r
+ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-jar" ,"./app.jar"]
\ No newline at end of file