diff options
author | Guillaume Mazoyer <gmazoyer@gravitons.in> | 2018-01-26 21:44:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-26 21:44:11 +0100 |
commit | 9445e01fe6de66817e4f0b255f2e20c7ad2f66ca (patch) | |
tree | 84c2c645af63bb9c8bd733e0f23f88b24d71a03d | |
parent | c0714e2382a1bb044d81bd0c8d32978c52268d15 (diff) | |
parent | f96656cf8267b18d7921a33f64235e0a2821ff74 (diff) |
Merge pull request #26 from amtypaldos/master
Fix #18
-rw-r--r-- | Dockerfile | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -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 |