From: Piotr Bochenski Date: Tue, 29 May 2018 18:28:07 +0000 (+0200) Subject: Switch base image to 'openjdk' in Dockerfile X-Git-Tag: 1.3.1~28^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=2a43fdbb6f67831beb9c94aca58f97b15dd94fb2;p=dcaegen2%2Fcollectors%2Fves.git Switch base image to 'openjdk' in Dockerfile There is no need to install JDK inside Docker image since there are prebuild images already available. This way we can reduce build time and resulting Docker image size. Change-Id: I7fcc2ecc47614cb4e26aec120f2a4297cd9e6000 Issue-ID: DCAEGEN2-535 Signed-off-by: Piotr Bochenski --- diff --git a/Dockerfile b/Dockerfile index 9aa246a6..259ac980 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ -FROM ubuntu:16.04 -#FROM dcae-alpine:8-jre-tini +FROM openjdk:8-jre-slim MAINTAINER vv770d@att.com @@ -9,8 +8,6 @@ ENV HOME /opt/app/VESCollector ENV JAVA_HOME /usr ENV HOSTALIASES /etc/host.aliases -RUN apt-get update && apt-get install -y curl vim openjdk-8-jdk - COPY opt /opt EXPOSE 8080 8443