summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
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