-
This commit is contained in:
parent
ef04c9ed79
commit
7b82023198
@ -27,6 +27,10 @@ COPY docker/php/php-prod.ini /usr/local/etc/php/conf.d
|
|||||||
|
|
||||||
COPY start.sh /home/start.sh
|
COPY start.sh /home/start.sh
|
||||||
|
|
||||||
|
ENV TZ=Europe/Moscow
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
RUN printf '[Date]\ndate.timezone="%s"\n', $TZ > /usr/local/etc/php/conf.d/tzone.ini
|
||||||
|
|
||||||
#nginx
|
#nginx
|
||||||
ADD docker/nginx/default.conf /etc/nginx/conf.d/default.conf
|
ADD docker/nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf
|
COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|||||||
@ -23,6 +23,10 @@ COPY code/ /var/www
|
|||||||
|
|
||||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
|
|
||||||
|
ENV TZ=Europe/Moscow
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
RUN printf '[Date]\ndate.timezone="%s"\n', $TZ > /usr/local/etc/php/conf.d/tzone.ini
|
||||||
|
|
||||||
# Configure Xdebug
|
# Configure Xdebug
|
||||||
#RUN pecl install xdebug
|
#RUN pecl install xdebug
|
||||||
#RUN docker-php-ext-enable xdebug
|
#RUN docker-php-ext-enable xdebug
|
||||||
|
|||||||
@ -67,7 +67,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'timezone' => 'UTC',
|
'timezone' => 'Europe/Moscow',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
Binary file not shown.
3
code/test.php
Executable file
3
code/test.php
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
echo date('Y-m-d H:i:s');
|
||||||
Loading…
Reference in New Issue
Block a user