From 518320956cad4c6cce51b59aacc2ac0a82fc171d Mon Sep 17 00:00:00 2001 From: artfaal Date: Tue, 18 Mar 2014 15:12:49 +0300 Subject: [PATCH] Don't upgrade in builds Updates will be baked into the based images you don't need to apt-get upgrade your containers. Because of the isolation that happens this can often fail if something is trying to modify init or make device changes inside a container. It also produces inconsistent images because you no longer have one source of truth of how your application should run and what versions of dependencies are included in the image. source: http://crosbymichael.com/category/docker.html --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 970185a..b442087 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ FROM ubuntu:latest MAINTAINER John Fink RUN apt-get update # Mon Jan 27 11:35:22 EST 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 openssh-server sudo php5-ldap RUN easy_install supervisor ADD ./start.sh /start.sh