Fix crontab
All checks were successful
Push image to registry / build-image (push) Successful in 3m47s
All checks were successful
Push image to registry / build-image (push) Successful in 3m47s
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user