update bugs dockerfile
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m27s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
Build, Push and Deploy / deploy-staging (push) Successful in 37s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m27s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
Build, Push and Deploy / deploy-staging (push) Successful in 37s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
This commit is contained in:
@@ -55,8 +55,8 @@ RUN mv vendor /vendor_clean
|
||||
# Copy the rest of the application files (will ignore vendor because of .dockerignore)
|
||||
COPY --chown=www-data:www-data . .
|
||||
|
||||
# Restore the clean vendor directory
|
||||
RUN rm -rf vendor && mv /vendor_clean vendor
|
||||
# Restore the clean vendor directory and set proper permissions
|
||||
RUN rm -rf vendor && mv /vendor_clean vendor && chown -R www-data:www-data vendor
|
||||
|
||||
# Final build verification
|
||||
RUN if [ ! -f vendor/laravel/prompts/src/helpers.php ]; then \
|
||||
|
||||
@@ -75,9 +75,9 @@ fi
|
||||
echo "Verifying APP_KEY after generation:"
|
||||
grep "APP_KEY" .env
|
||||
|
||||
# Force autoloader regeneration to ensure absolute path consistency
|
||||
echo "Regenerating autoloader..."
|
||||
composer dump-autoload
|
||||
# Ensure vendor directory matches composer.lock exactly, syncing missing packages
|
||||
echo "Verifying and synchronizing Composer dependencies..."
|
||||
composer install --no-interaction --optimize-autoloader
|
||||
|
||||
# Verify vendor integrity at PHP level
|
||||
echo "Checking vendor visibility and READABILITY for PHP..."
|
||||
|
||||
Reference in New Issue
Block a user