From b7f8006af6359c8e96971fd9bf69f4d3b494b1c2 Mon Sep 17 00:00:00 2001 From: Alessio Caiazza Date: Sun, 24 Sep 2017 13:11:52 +0200 Subject: [PATCH] Add Dockerfile based on php:7.1-apache image --- .dockerignore | 3 +++ Dockerfile | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..26c60d4 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.git/ +.gitignore +doc/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4eede91 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM php:7.1-apache + +RUN apt-get update &&\ + apt-get install -y rrdtool &&\ + a2enmod rewrite &&\ + rm -rf /var/lib/apt/lists/* +COPY . /var/www/html/ +RUN sed -i "s/\$CONFIG\['graph_type'\].*$/\$CONFIG['graph_type'] = 'canvas';/" /var/www/html/conf/config.php