summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 8 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile
index fb5eb07..0f9595b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,15 +1,14 @@
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 .
+# add timezone to php.ini
+RUN echo 'date.timezone = UTC' >> /usr/local/etc/php/php.ini
+
+# copy code from local folder
+COPY ./ /var/www/html
+
+RUN touch /var/log/looking-glass.log && chmod 777 /var/log/looking-glass.log
+
-# Get rid of git
-RUN apt-get purge -y --auto-remove git