From 62b188b6b689aa94ea60a3f19ec1286b3206ea0a Mon Sep 17 00:00:00 2001 From: sebdet Date: Mon, 2 Mar 2020 15:22:57 -0800 Subject: Update docker image Update docker base image so that clamp uses the official onap jdk image Issue-ID: CLAMP-625 Change-Id: I68525be3d6bfbf5dd7c5bcf6d59863df07fd4dd9 Signed-off-by: sebdet --- src/main/docker/backend/Dockerfile | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/main/docker/backend/Dockerfile b/src/main/docker/backend/Dockerfile index c2b76b0b5..5b4b80949 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 HTTPS_PROXY=$https_proxy 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 chmod 700 /opt/clamp/app.jar 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"] -- cgit 1.2.3-korg