From 8975db7549ae818a152a6c55a960e8d2cfa538da Mon Sep 17 00:00:00 2001 From: sebdet Date: Wed, 30 Sep 2020 11:55:02 +0200 Subject: Align clamp path Align clamp path to what has been developed in OOM Issue-ID: CLAMP-943 Signed-off-by: sebdet Change-Id: I75b15d2e817b863d6482d422437939986c5be476 --- src/main/docker/backend/Dockerfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/docker/backend/Dockerfile b/src/main/docker/backend/Dockerfile index 06a05abf7..ebc1d57f2 100644 --- a/src/main/docker/backend/Dockerfile +++ b/src/main/docker/backend/Dockerfile @@ -24,7 +24,7 @@ FROM onap/integration-java11:7.1.0 MAINTAINER "The Onap Team" -LABEL Description="This immage contains alpine, openjdk 11 and clamp" +LABEL Description="This image contains alpine, openjdk 11 and clamp" ARG http_proxy ARG https_proxy @@ -32,7 +32,14 @@ ENV HTTP_PROXY=$http_proxy ENV HTTPS_PROXY=$https_proxy ENV http_proxy=$HTTP_PROXY ENV https_proxy=$HTTPS_PROXY +USER root +RUN mkdir /opt/clamp +RUN chown -R onap:onap /opt/clamp -VOLUME /app/config +VOLUME /opt/clamp/config -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 + +USER onap +WORKDIR /opt/clamp/ +ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-jar" ,"./app.jar"] \ No newline at end of file -- cgit 1.2.3-korg