Added other containers
Some checks reported warnings
Build and push image / Build (push) Has been cancelled
Some checks reported warnings
Build and push image / Build (push) Has been cancelled
This commit is contained in:
18
php-cli/Dockerfile
Normal file
18
php-cli/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM php:8.1-cli
|
||||
|
||||
# installing cron package
|
||||
RUN apt-get update && apt-get -y install cron libbz2-dev curl libcurl4-openssl-dev libxml2-dev libenchant-2-dev libssl-dev libpng-dev libgmp-dev libzip-dev sudo rsync zip unzip libldap2-dev
|
||||
|
||||
RUN pecl install redis && docker-php-ext-enable redis
|
||||
|
||||
RUN docker-php-ext-install pdo_mysql opcache gd zip ldap
|
||||
|
||||
COPY ./crontab /etc/cron.d/crontab
|
||||
|
||||
RUN chmod 0644 /etc/cron.d/crontab
|
||||
|
||||
RUN /usr/bin/crontab /etc/cron.d/crontab
|
||||
|
||||
RUN adduser -D -H -u 1000 -s /bin/bash www-data -G www-data
|
||||
RUN usermod -u 1000 www-data
|
||||
RUN groupmod -g 1000 www-data
|
6
php-cli/crontab
Normal file
6
php-cli/crontab
Normal file
@@ -0,0 +1,6 @@
|
||||
*/5 * * * * sudo -u www-data php -d memory_limit=512M -f /var/www/nextcloud/cron.php
|
||||
|
||||
* * * * * sudo -u www-data php -d memory_limit=512M /var/www/pterodactyl/artisan schedule:run >> /dev/null 2>&1
|
||||
* * * * * cd /var/www/invoice-ninja && sudo -u www-data php -d memory_limit=512M artisan schedule:run >> /dev/null 2>&1
|
||||
|
||||
18 11 * * * /var/www/email.tgj.services/site/bin/cleandb.sh
|
Reference in New Issue
Block a user