Manejo de trabajos en cli por php en vez de cron

This commit is contained in:
Juan Pablo Vial
2025-05-10 12:40:06 -04:00
parent 4ca1616dfc
commit 4d5b657b92
11 changed files with 169 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM php:8.2-cli
FROM php:8.4-cli
ENV TZ "${TZ}"
ENV APP_NAME "${APP_NAME}"
@ -6,9 +6,10 @@ ENV API_URL "${API_URL}"
RUN apt-get update && apt-get install -y --no-install-recommends cron rsyslog nano && rm -r /var/lib/apt/lists/*
RUN pecl install xdebug-3.2.2 \
&& docker-php-ext-enable xdebug \
&& echo "#/bin/bash\nprintenv >> /etc/environment\ncron -f -L 11" > /root/entrypoint && chmod a+x /root/entrypoint
RUN pecl install xdebug-3.4.2 \
&& docker-php-ext-enable xdebug
COPY --chmod=550 ./cli/entrypoint /root/entrypoint
COPY ./php-errors.ini /usr/local/etc/php/conf.d/docker-php-errors.ini