From b7fe1b0bcc55d3eebc9592d93e3e247a30d9984c Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 1 Mar 2025 21:42:48 +0000 Subject: [PATCH] Update Dockerfile --- php-8-2-fpm/Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/php-8-2-fpm/Dockerfile b/php-8-2-fpm/Dockerfile index e1554d6..8173950 100644 --- a/php-8-2-fpm/Dockerfile +++ b/php-8-2-fpm/Dockerfile @@ -2,12 +2,12 @@ FROM php:8.2-fpm-alpine ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ +RUN apk update && apk upgrade + COPY ./config/php.ini-production "$PHP_INI_DIR/php.ini-production" COPY ./config/pool.d "$PHP_INI_DIR/" RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" -RUN apk update && apk upgrade - RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \ && pecl install uploadprogress \ && docker-php-ext-enable uploadprogress \ @@ -81,9 +81,12 @@ RUN apk add \ RUN apk add sudo bash - COPY ./crontab /etc/cron.d/crontab RUN chmod 0644 /etc/cron.d/crontab -RUN /usr/bin/crontab /etc/cron.d/crontab \ No newline at end of file +RUN /usr/bin/crontab /etc/cron.d/crontab + +RUN touch /var/log/cron.log + +CMD bash -c "crond -f -d 8 & php-fpm" \ No newline at end of file