Adding autoremove

This commit is contained in:
Ric Harvey
2015-07-15 08:49:52 +00:00
parent 10cdaa81cb
commit 195e6999c2
2 changed files with 7 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
FROM ubuntu:14.04
FROM ubuntu:14.04.2
MAINTAINER Ric Harvey <ric@ngineered.co.uk>
# 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 && \