From 1f3106b9da6f90426e77e2bde746e86205587d20 Mon Sep 17 00:00:00 2001 From: Byron Wolfman Date: Tue, 10 Jan 2017 19:22:06 -0500 Subject: [PATCH] Use debian base container and clean up apt-get (#3011) * Use debian base container and clean up apt-get Attempt to slim down the docker image by replacing ubuntu:trusty with debian:jessie and clean up after apt-get invocation. Building against the 3.6.0 commit shows a healthy reduction of 44MB, or 9%, compared to the ubuntu-based image. * Use debian:jessie-slim for an even smaller image If we're using a debian base image for sizing reasons, we may as well go the full distance and use debian-slim. --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 712b29217a..896eab95ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:trusty +FROM debian:jessie-slim MAINTAINER Brady Wetherington RUN apt-get update && apt-get install -y \ @@ -13,7 +13,9 @@ patch \ curl \ vim \ git \ -mysql-client +mysql-client \ +&& apt-get clean \ +&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN php5enmod mcrypt RUN php5enmod gd