From b744847797507cbea7f1231a2dabc9da741a5d01 Mon Sep 17 00:00:00 2001 From: SaEEd Date: Mon, 16 Sep 2024 16:04:12 +0330 Subject: [PATCH] update --- Dockerfile | 3 ++- crontab.conf | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 crontab.conf diff --git a/Dockerfile b/Dockerfile index c5841b1..4a75538 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,8 +53,9 @@ RUN groupadd --force -g 1000 octane && useradd -ms /bin/bash --no-log-init --no- WORKDIR /app RUN chown -R octane:octane . EXPOSE 80 +RUN echo "" >> /etc/crontab +RUN echo "* * * * * octane cd /app && php artisan schedule:run >> /dev/null 2>&1" >> /etc/crontab COPY ./supervisord.conf /etc/supervisor/octane.conf -COPY ./crontab.conf /etc/cron.d/laravel COPY ./entrypoint.sh /etc/entrypoint.sh ENTRYPOINT ["/etc/entrypoint.sh"] HEALTHCHECK --start-period=60s --interval=30s --timeout=5s --retries=3 CMD php artisan octane:status || exit 1 diff --git a/crontab.conf b/crontab.conf deleted file mode 100644 index 03cd10a..0000000 --- a/crontab.conf +++ /dev/null @@ -1 +0,0 @@ -* * * * * octane cd /app && php artisan schedule:run >> /dev/null 2>&1