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 | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index f3956fc..f594f24 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,12 @@ -FROM debian:jessie +FROM openjdk:8-jre-slim MAINTAINER Jacek Kowalski <Jacek@jacekk.info> 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