Merge "Update docker image Update docker base image so that clamp uses the official onap jdk image"
diff --git a/src/main/docker/backend/Dockerfile b/src/main/docker/backend/Dockerfile
index c2b76b0..5b4b809 100644
--- a/src/main/docker/backend/Dockerfile
+++ b/src/main/docker/backend/Dockerfile
@@ -21,7 +21,7 @@
 #

 ###

 

-FROM alpine:3.10.3

+FROM onap/policy-jdk-debian:2.0.1

 

 MAINTAINER "The Onap Team"

 LABEL Description="This immage contains alpine, openjdk 11 and clamp"

@@ -33,9 +33,8 @@
 ENV http_proxy=$HTTP_PROXY

 ENV https_proxy=$HTTPS_PROXY

 

-RUN apk --no-cache add openjdk11 --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community

-

-RUN addgroup onap && adduser -D -G onap clamp

+RUN addgroup onap

+RUN useradd -g onap clamp

 VOLUME /opt/clamp/config

 RUN mkdir /var/log/onap

 RUN chmod a+rwx /var/log/onap

@@ -45,15 +44,6 @@
 

 RUN chown -R clamp:onap /opt/clamp

 

-RUN apk add fontconfig

-RUN apk add ttf-dejavu

-

-RUN ln -s /usr/lib/libfontconfig.so.1 /usr/lib/libfontconfig.so && \

-  ln -s /lib/libuuid.so.1 /usr/lib/libuuid.so.1 && \

-  ln -s /lib/libc.musl-x86_64.so.1 /usr/lib/libc.musl-x86_64.so.1

-

-ENV LD_LIBRARY_PATH /usr/lib

-

 USER clamp

 WORKDIR /opt/clamp/

 ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Xms256m", "-Xmx1g", "-jar" ,"./app.jar"]