From 35cacb2e99a0ef70dd8ef36ad8b8c1c5de493a95 Mon Sep 17 00:00:00 2001 From: Malek Tellissi Date: Sat, 12 Sep 2026 04:36:42 +0200 Subject: [PATCH] Replace storage:link with explicit ln -sf to fix broken symlink php artisan storage:link was creating a regular file instead of a symlink, causing 404s for all uploaded images. Co-Authored-By: Claude Sonnet 4.6 --- docker/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index fa23f7b..b766898 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -27,7 +27,8 @@ mkdir -p storage/app/public \ storage/framework/cache/data echo "==> Storage-Symlink anlegen..." -php artisan storage:link --force +rm -rf public/storage +ln -sf ../storage/app/public public/storage echo "==> Cache für Produktion bauen..." php artisan config:cache