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