From db12f293f91a986ab031afb7a79744f790f0985d Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Thu, 1 Sep 2016 16:38:30 +0200 Subject: Add Dockerfile. Add a Dockerfile to build Docker images. Also add a documentation file to help building Docker for this looking glass. The official Docker image uses the PHP image with Apache 2 and PHP 5.6. --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fb5eb07 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM php:5.6-apache +MAINTAINER Guillaume Mazoyer + +# Need git +RUN apt-get update && apt-get install -y git + +WORKDIR /var/www/html + +# Clone repository with given branch +ARG BRANCH=master +ARG URL=https://github.com/respawner/looking-glass.git +RUN git clone --depth 1 $URL -b $BRANCH . + +# Get rid of git +RUN apt-get purge -y --auto-remove git -- cgit v1.2.3