From d078e496294c663e3c37f5b01ab73437869f2fec Mon Sep 17 00:00:00 2001 From: Alexander Pervakov Date: Wed, 15 Feb 2017 13:38:30 +0400 Subject: [PATCH] Remove caching for update According to [BP for RUN and apt-get](https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#apt-get). --- Dockerfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00a1ad8..1ccecdd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,15 @@ FROM ubuntu:latest MAINTAINER John Fink -RUN apt-get update # Fri Oct 24 13:09:23 EDT 2014 -RUN apt-get -y upgrade -RUN DEBIAN_FRONTEND=noninteractive apt-get -y install mysql-client mysql-server apache2 libapache2-mod-php5 pwgen python-setuptools vim-tiny php5-mysql php5-ldap +RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install \ + mysql-client \ + mysql-server \ + apache2 \ + libapache2-mod-php5 \ + pwgen \ + python-setuptools \ + vim-tiny \ + php5-mysql \ + php5-ldap RUN easy_install supervisor ADD ./scripts/start.sh /start.sh ADD ./scripts/foreground.sh /etc/apache2/foreground.sh