1 parent
085ab7e9b8
commit
c48f30b474
6 files changed
+8
-96
No files matched your search
+2
-5
@@ -1,12 +1,9 @@
|
||||
# Use PHP with Apache as the base image
|
||||
FROM php:8.4-apache
|
||||
|
||||
# Application root (default keeps the original /var/www/html layout)
|
||||
ENV APP_ROOT="/var/www/html"
|
||||
|
||||
# Environment
|
||||
ENV TZ="Europe/Prague" \
|
||||
APACHE_DOCUMENT_ROOT="${APP_ROOT}/public" \
|
||||
APACHE_DOCUMENT_ROOT="/var/www/html/public" \
|
||||
PHP_INI_FILE="$PHP_INI_DIR/php.ini" \
|
||||
PHP_OPCACHE_VALIDATE_TIMESTAMPS="1" \
|
||||
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \
|
||||
@@ -117,7 +114,7 @@ COPY ./supervisor/conf.d/laravel-queues.conf /etc/supervisor/conf.d/laravel-queu
|
||||
|
||||
# Setup Crone
|
||||
RUN mkdir -p /var/log/cron && \
|
||||
echo "* * * * * www-data cd ${APP_ROOT} && /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 schedule:run >> /dev/null 2>&1" >> /etc/crontab
|
||||
|
||||
# Install composer # bun
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
Reference in new issue
Block a user