schedule task log to docker process when running in docker environment

This commit is contained in:
xiaomlove
2025-05-19 13:18:47 +07:00
parent 273fa3e1b8
commit 3dfe0cbd27
5 changed files with 44 additions and 17 deletions

View File

@@ -76,6 +76,7 @@ RUN echo "error_log = /dev/stderr" >> /usr/local/etc/php/conf.d/error-logging.in
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
ENV LOG_CHANNEL=stderr
ENV RUNNING_IN_DOCKER=1
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

View File

@@ -83,6 +83,7 @@ RUN echo "error_log = /dev/stderr" >> /usr/local/etc/php/conf.d/error-logging.in
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
ENV LOG_CHANNEL=stderr
ENV RUNNING_IN_DOCKER=1
# 复制入口脚本
COPY entrypoint.sh /usr/local/bin/entrypoint.sh