summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramtypaldos <amtypaldos@gmail.com>2018-01-26 14:45:40 -0500
committeramtypaldos <amtypaldos@gmail.com>2018-01-26 14:45:40 -0500
commitf96656cf8267b18d7921a33f64235e0a2821ff74 (patch)
tree84c2c645af63bb9c8bd733e0f23f88b24d71a03d
parent9221f58e1b920b51a04fb197711c69e1a59d6a62 (diff)
add timezone setting to dockerfile instead of seperate php.ini
-rw-r--r--Dockerfile4
-rw-r--r--php.ini1
2 files changed, 2 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 7b6f4e3..0f9595b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,8 +3,8 @@ MAINTAINER Guillaume Mazoyer <gmazoyer@gravitons.in>
WORKDIR /var/www/html
-# add custom php.ini
-COPY php.ini /usr/local/etc/php/
+# 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
diff --git a/php.ini b/php.ini
deleted file mode 100644
index ced3e0d..0000000
--- a/php.ini
+++ /dev/null
@@ -1 +0,0 @@
-date.timezone = UTC \ No newline at end of file