From b747961ab151eeebc4c04557f9d8efd5e020d605 Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Tue, 25 Apr 2017 18:32:39 -0700 Subject: [PATCH] Small tweak to reduce the image size. Removing the build-deps package in a different layer doesn't really help because of the way layered file systems work. They will exist in the image but appear to be removed by whiteout files or something. This commit should reduce the size of the mailman-core image considerably. --- core/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/Dockerfile b/core/Dockerfile index 0622a33..02e919c 100644 --- a/core/Dockerfile +++ b/core/Dockerfile @@ -6,9 +6,8 @@ MAINTAINER Abhilash Raj # from the Gitlab. RUN apk update \ && apk add --virtual build-deps gcc python3-dev musl-dev wget \ - && apk add postgresql-dev bash - -RUN wget -O mailman.zip https://gitlab.com/mailman/mailman/repository/archive.zip?ref=master \ + && apk add postgresql-dev bash \ + && wget -O mailman.zip https://gitlab.com/mailman/mailman/repository/archive.zip?ref=master \ && wget -O mailman_hyperkitty.zip https://gitlab.com/mailman/mailman-hyperkitty/repository/archive.zip?ref=master \ && pip install mailman.zip mailman_hyperkitty.zip psycopg2 \ && rm mailman.zip mailman_hyperkitty.zip \