From 635c0f5a2024cb9110a6d631dfd4612d030157b5 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Fri, 24 Jan 2014 13:48:43 -0500 Subject: [PATCH] Split out installing prereqs into 3 steps (DB, Apache, ZM) in Dockerfile --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7e9b45bed..5a2a6ab03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,14 @@ MAINTAINER Kyle Johnson # Resynchronize the package index files RUN apt-get update +# Install the MySQL server +RUN apt-get install -y mysql-server + +# Install apache and php +RUN apt-get install -y apache2 php5 php5-mysql apache2-mpm-prefork libapache2-mod-php5 php5-cli + # Install the prerequisites required to build ZoneMinder and ffmpeg -RUN apt-get install -y apache2 mysql-server php5 php5-mysql build-essential libmysqlclient-dev libssl-dev libbz2-dev libpcre3-dev libdbi-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libmime-perl libpcre3 libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm subversion automake autoconf libjpeg-turbo8-dev libjpeg-turbo8 apache2-mpm-prefork libapache2-mod-php5 php5-cli libtheora-dev libvorbis-dev libvpx-dev libx264-dev libmp4v2-dev ffmpeg git +RUN apt-get install -y build-essential libmysqlclient-dev libssl-dev libbz2-dev libpcre3-dev libdbi-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libmime-perl libpcre3 libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm subversion automake autoconf libjpeg-turbo8-dev libjpeg-turbo8 libtheora-dev libvorbis-dev libvpx-dev libx264-dev libmp4v2-dev ffmpeg git # Grab the latest ZoneMinder code RUN git clone https://github.com/ZoneMinder/ZoneMinder.git