diff --git a/Dockerfile b/Dockerfile index 8cdffe5..500c973 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,7 @@ RUN apt-get update && apt-get install -y \ libxml2-dev \ zip \ cron \ + ntp \ && docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd \ && echo "* * * * * cd /var/www && php artisan schedule:run >> /dev/null 2>&1" >> /etc/cron.d/laravel-cron \ && chmod 0644 /etc/cron.d/laravel-cron \ @@ -49,7 +50,9 @@ RUN set -x && \ chmod -R 775 /var/www/storage/framework/views && \ echo "Views izinleri ayarlandı" && \ chmod -R 775 /var/www/public && \ - echo "Public dizin izinleri ayarlandı" + echo "Public dizin izinleri ayarlandı" && \ + echo "0 0 * * * root /usr/sbin/ntpdate -u pool.ntp.org" >> /etc/crontab && \ + echo "Otomatik saat güncelleme ayarlandı" # Laravel uygulamasını başlatma ve loglama RUN set -x && \