summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGervais-Martial Ngueko <gervais-martial.ngueko@intl.att.com>2020-03-03 16:15:22 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-03 16:15:22 +0000
commitfb445e11abb3ad59e5e2305b023422e2b4796989 (patch)
tree844429b9810e3544d1d910d86af8c2140fe83d2e
parent81ff0fba2a1313b51dbf840691addfc4141de571 (diff)
parent62b188b6b689aa94ea60a3f19ec1286b3206ea0a (diff)
Merge "Update docker image Update docker base image so that clamp uses the official onap jdk image"
-rw-r--r--src/main/docker/backend/Dockerfile16
1 files 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"]