removed ARM images (unused), Migrated php-2.2 CLI crons to the FPM image
Some checks failed
Build and push image / Build (push) Failing after 35s

This commit is contained in:
Jack
2024-11-12 14:08:09 +00:00
parent b27aa50671
commit 1124d76045
6 changed files with 27 additions and 21 deletions

View File

@@ -0,0 +1,20 @@
FROM php:8.2-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
#COPY ./petroq.service /etc/systemd/system
#RUN systemctl enable --now pteroq.service
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