summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorGuillaume Mazoyer <gmazoyer@gravitons.in>2016-09-01 16:38:30 +0200
committerGuillaume Mazoyer <gmazoyer@gravitons.in>2016-09-01 16:38:30 +0200
commitdb12f293f91a986ab031afb7a79744f790f0985d (patch)
tree90d9abb636902257b01be60da12e7a839a14cc12 /Dockerfile
parent90f302bf68924b68e93366447db64d4b808acdf3 (diff)
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.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 15 insertions, 0 deletions
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 <gmazoyer@gravitons.in>
+
+# 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