From c5b5438d3c1e28ed433c7c7080b252eb7287f1f5 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 26 Nov 2017 13:14:16 +0000 Subject: [PATCH] Remove APT lists from image to lower its size --- Dockerfile | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0f922e7..f594f24 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ -FROM debian +FROM openjdk:8-jre-slim MAINTAINER Jacek Kowalski <Jacek@jacekk.info> -ENV OPENFIRE_VERSION 4.0.0 +ENV OPENFIRE_VERSION 4.1.5 RUN apt-get -y update \ - && apt-get -y install openjdk-7-jre-headless wget sudo \ - && apt-get -y clean + && apt-get -y install wget sudo \ + && apt-get -y clean \ + && rm -Rf /var/lib/apt/lists/* RUN cd /tmp \ && wget -O openfire.deb "https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_${OPENFIRE_VERSION}_all.deb" \ -- Gitblit v1.9.1