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.
This commit is contained in:
Abhilash Raj
2017-04-25 18:32:39 -07:00
committed by Abhilash Raj
parent 23ad9f25b8
commit b747961ab1

View File

@@ -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 \