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 |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index a14cee9..f594f24 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,13 +1,12 @@
-FROM debian
+FROM openjdk:8-jre-slim
 MAINTAINER Jacek Kowalski <Jacek@jacekk.info>
 
-ENV OPENFIRE_VERSION 4.1.0
+ENV OPENFIRE_VERSION 4.1.5
 
-RUN echo 'deb http://httpredir.debian.org/debian jessie-backports main' > \
-		/etc/apt/sources.list.d/jessie-backports.list \
-	&& apt-get -y update \
-	&& apt-get -y -t jessie-backports install openjdk-8-jre-headless wget sudo \
-	&& apt-get -y clean
+RUN apt-get -y update \
+	&& 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