forked from argilla/docker
cron fix for tgbot docker image
This commit is contained in:
parent
98c9d46cca
commit
f0577d015f
|
@ -3,13 +3,12 @@ FROM php:7.4-apache
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y git
|
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 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 calendar && docker-php-ext-configure calendar
|
||||||
RUN docker-php-ext-install mysqli
|
RUN docker-php-ext-install mysqli
|
||||||
RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
|
RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
|
||||||
|
|
||||||
RUN apt-get install -y cron
|
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 /
|
COPY entrypoint.sh /
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
service cron start
|
service cron start
|
||||||
|
crontab -u www-data /var/www/html/tgbot.cron
|
||||||
apachectl -D FOREGROUND
|
apachectl -D FOREGROUND
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
php /var/www/html/schedule.php
|
|
||||||
|
|
Loading…
Reference in New Issue