cron fix for tgbot docker image

This commit is contained in:
giomba 2020-12-06 17:45:29 +01:00
parent 98c9d46cca
commit f0577d015f
3 changed files with 3 additions and 5 deletions

View File

@ -3,13 +3,12 @@ FROM php:7.4-apache
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y libmemcached-dev zlib1g-dev && pecl install memcached-3.1.5 && docker-php-ext-enable memcached
RUN git clone --depth 1 --branch docker https://git.golem.linux.it/golem/golem-telegram-bot.git /var/www/html
RUN docker-php-ext-install calendar && docker-php-ext-configure calendar
RUN docker-php-ext-install mysqli
RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
RUN apt-get install -y cron
COPY tgbot.cron /etc/cron.hourly/
RUN git clone --depth 1 --branch docker https://git.golem.linux.it/golem/golem-telegram-bot.git /var/www/html
COPY entrypoint.sh /

View File

@ -1,3 +1,4 @@
#!/bin/bash
service cron start
crontab -u www-data /var/www/html/tgbot.cron
apachectl -D FOREGROUND

View File

@ -1,2 +0,0 @@
php /var/www/html/schedule.php