aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Bochenski <piotr.bochenski@nokia.com>2018-05-29 20:28:07 +0200
committerPiotr Bochenski <piotr.bochenski@nokia.com>2018-05-30 12:13:50 +0200
commit2a43fdbb6f67831beb9c94aca58f97b15dd94fb2 (patch)
tree9c47ab049db297a260ce51d4a9275b25c2d1bfe6
parentb9ff18652d79f0fea88b4308b5e1ff985fbc395d (diff)
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 <piotr.bochenski@nokia.com>
-rw-r--r--Dockerfile5
1 files changed, 1 insertions, 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