This commit is contained in:
2024-09-16 16:04:12 +03:30
parent f90d0eb492
commit b744847797
2 changed files with 2 additions and 2 deletions

View File

@@ -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