add php8.2

This commit is contained in:
Jack
2024-07-15 11:24:09 +01:00
parent 96851e9a34
commit 7727a0b4ef
7 changed files with 54 additions and 6 deletions

20
php-8-2-cli/Dockerfile Normal file
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