From 2a43fdbb6f67831beb9c94aca58f97b15dd94fb2 Mon Sep 17 00:00:00 2001 From: Piotr Bochenski Date: Tue, 29 May 2018 20:28:07 +0200 Subject: [PATCH] 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 --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.16.6