Fix crontab
All checks were successful
Push image to registry / build-image (push) Successful in 3m47s

This commit is contained in:
2025-02-16 10:04:41 +01:00
parent e6776df487
commit b40764c4ad
2 changed files with 6 additions and 5 deletions

View File

@ -61,7 +61,8 @@ RUN docker-php-ext-install gd pdo pdo_mysql zip
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /var/www
ARG wd=/var/www
WORKDIR ${wd}
COPY . .
COPY --from=build-vue /usr/app/public/build ./public/build
@ -75,7 +76,7 @@ RUN mv ${APP_ENV_FILE} .env
RUN composer install --no-interaction --prefer-dist
# CRON
RUN echo "* * * * * cd /usr/app && php artisan schedule:run >> /dev/null 2>&1" > /etc/crontabs/root
RUN echo "* * * * * cd ${wd} && php artisan schedule:run >> /dev/null 2>&1" > /etc/crontabs/root
# Link the storage directory to the public directory.
RUN php artisan storage:link