From 195e6999c2e4cb56af25e3c2db3d08818e8dfc26 Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Wed, 15 Jul 2015 08:49:52 +0000 Subject: [PATCH] Adding autoremove --- Dockerfile | 9 ++++++--- README.md | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 330aa68..01e91cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:14.04 +FROM ubuntu:14.04.2 MAINTAINER Ric Harvey # Surpress Upstart errors/warning @@ -11,12 +11,15 @@ ENV DEBIAN_FRONTEND noninteractive # Update base image # Add sources for latest nginx # Install software requirements -RUN nginx=development && \ +RUN apt-get update && \ +apt-get install -y software-properties-common && \ +nginx=development && \ add-apt-repository ppa:nginx/$nginx && \ -apt-get update && \ apt-get upgrade -y && \ BUILD_PACKAGES="supervisor nginx php5-fpm git php5-mysql php5-mysql php-apc php5-curl php5-gd php5-intl php5-mcrypt php5-memcache php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-pgsql php5-mongo pwgen" && \ apt-get -y install $BUILD_PACKAGES && \ +apt-get remove --purge -y software-properties-common && \ +apt-get autoremove -y && \ apt-get clean && \ apt-get autoclean && \ echo -n > /var/lib/apt/extended_states && \ diff --git a/README.md b/README.md index f31dad1..55c2889 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ If you have any improvements please submit a pull request. The Docker hub build can be found here: [https://registry.hub.docker.com/u/richarvey/nginx-php-fpm/](https://registry.hub.docker.com/u/richarvey/nginx-php-fpm/) ## Nginx Versions -- Mainline Version: **1.9.2** +- Mainline Version: **1.9.3** - Stable Version: **1.8.0** - *Latest = Mainline Version*