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