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