This commit is contained in:
Jonatan Rek
2025-11-23 22:36:28 +01:00
parent 2c1a562bf2
commit 74196f9d1f
2 changed files with 12 additions and 7 deletions
-7
View File
@@ -75,13 +75,6 @@ ENV APACHE_DOCUMENT_ROOT=/var/www/html/public
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf && \
sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
# Setup Crone
RUN mkdir -p /var/log/cron && \
echo "* * * * * www-data cd /var/www/html && /usr/local/bin/php artisan schedule:run >> /dev/null 2>&1" >> /etc/crontab && \
echo "* * * * * www-data cd /var/www/html && /usr/local/bin/php artisan queue:work --queue=default,importstatistics --stop-when-empty >> /dev/null 2>&1" >> /etc/crontab && \
echo "* * * * * www-data cd /var/www/html && /usr/local/bin/php artisan queue:work --queue=statistics --stop-when-empty >> /dev/null 2>&1" >> /etc/crontab && \
echo "* * * * * www-data cd /var/www/html && /usr/local/bin/php artisan queue:work --queue=detections --stop-when-empty >> /dev/null 2>&1" >> /etc/crontab
# Install composer # bun
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer