diff --git a/Dockerfile b/Dockerfile index 3a8b2fd..633e02c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,14 +5,11 @@ LABEL Description="Cutting-edge LAMP stack, based on Ubuntu 16.04 LTS. Includes Usage="docker run -d -p [HOST WWW PORT NUMBER]:80 -p [HOST DB PORT NUMBER]:3306 -v [HOST WWW DOCUMENT ROOT]:/var/www/html -v [HOST DB DOCUMENT ROOT]:/var/lib/mysql fauria/lamp" \ Version="1.0" -RUN apt-get update -RUN apt-get upgrade -y - COPY debconf.selections /tmp/ RUN debconf-set-selections /tmp/debconf.selections -RUN apt-get install -y zip unzip -RUN apt-get install -y \ +# Install everything to keep in a single Docker Layer and speed up Rebuilding speeds +RUN apt-get update && apt-get upgrade -y && apt-get install -y zip unzip && apt-get install -y \ php7.0 \ php7.0-bz2 \ php7.0-cgi \ @@ -45,12 +42,13 @@ RUN apt-get install -y \ php7.0-tidy \ php7.0-xmlrpc \ php7.0-xsl \ - php7.0-zip -RUN apt-get install apache2 libapache2-mod-php7.0 -y -RUN apt-get install mariadb-common mariadb-server mariadb-client -y -RUN apt-get install postfix -y -RUN apt-get install git nodejs npm composer nano tree vim curl ftp -y -RUN npm install -g bower grunt-cli gulp + php7.0-zip && \ + apt-get install apache2 libapache2-mod-php7.0 -y && \ + apt-get install mariadb-common mariadb-server mariadb-client -y && \ + apt-get install postfix -y && \ + apt-get install git nodejs npm composer nano tree vim curl ftp -y && \ + npm install -g bower grunt-cli gulp && \ + apt autoremove && apt clean ENV LOG_STDOUT **Boolean** ENV LOG_STDERR **Boolean**