From 8552e04175c7091d0d748e0c0f4b14a0d9321b40 Mon Sep 17 00:00:00 2001 From: efiacor Date: Sat, 4 Apr 2020 17:51:53 +0100 Subject: [DMaaP DR] JKD 11 migration Signed-off-by: efiacor Change-Id: Ib9d326f4bdf5c4e208dea5a4a00be0c3be3a3067 Issue-ID: DMAAP-1386 --- datarouter-node/src/main/resources/docker/Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'datarouter-node/src/main') diff --git a/datarouter-node/src/main/resources/docker/Dockerfile b/datarouter-node/src/main/resources/docker/Dockerfile index 0d2331fd..7357d931 100644 --- a/datarouter-node/src/main/resources/docker/Dockerfile +++ b/datarouter-node/src/main/resources/docker/Dockerfile @@ -18,14 +18,17 @@ # limitations under the License. # ============LICENSE_END==================================================== # -FROM openjdk:8-jre-alpine +FROM openjdk:11.0.6-jre-slim MAINTAINER DMAAP Team COPY /opt /opt # curl used for healthcheck -RUN apk update && apk add curl && apk add vim +RUN apt-get update && \ + apt-get install -y \ + curl \ + vim EXPOSE 8080 8443 @@ -33,8 +36,8 @@ WORKDIR /opt RUN chmod 0700 startup.sh ENTRYPOINT ["sh", "startup.sh"] -RUN addgroup -S -g 1001 onap \ - && adduser -S -u 1000 dradmin -G onap \ +RUN groupadd -g 1001 onap \ + && useradd -u 1000 dradmin -g onap \ && chown -R dradmin:onap /opt/ /var/ USER dradmin -- cgit 1.2.3-korg