This commit is contained in:
2024-09-16 14:56:22 +03:30
parent a1864fe026
commit f90d0eb492
3 changed files with 5 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ RUN apt-get update; \
libc-ares-dev \
libnss3 libatk1.0-0 \
libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libgbm1 \
libpango1.0.0 libcairo2 libasound2 libxfixes3 libatk-bridge2.0.0
libpango1.0.0 libcairo2 libasound2 libxfixes3 libatk-bridge2.0.0 cron
RUN docker-php-ext-configure zip
RUN docker-php-ext-configure intl
@@ -54,6 +54,7 @@ WORKDIR /app
RUN chown -R octane:octane .
EXPOSE 80
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=30s --interval=30s --timeout=5s --retries=8 CMD php artisan octane:status || exit 1
HEALTHCHECK --start-period=60s --interval=30s --timeout=5s --retries=3 CMD php artisan octane:status || exit 1

1
crontab.conf Normal file
View File

@@ -0,0 +1 @@
* * * * * octane cd /app && php artisan schedule:run >> /dev/null 2>&1

View File

@@ -7,4 +7,5 @@ su -c "php artisan event:cache" octane
su -c "php artisan config:cache" octane
su -c "php artisan route:cache" octane
service cron start
exec supervisord --configuration /etc/supervisor/octane.conf