fix(docker): entrypoint chowns storage at container start
All checks were successful
Deploy Max Bot Test / deploy (push) Successful in 16s

Stale app.log owned by UID 82 (from previous image) blocked the UID-1000 php-fpm workers from writing. Entrypoint fixes ownership on every start, surviving migrations.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
pkirillw
2026-06-18 00:47:55 +03:00
parent bd5304ec5e
commit 2f56578d7a
2 changed files with 11 additions and 1 deletions

7
docker/php/entrypoint.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
set -e
mkdir -p /var/www/html/storage/logs /var/www/html/storage/uploads
chown -R www-data:www-data /var/www/html/storage
exec docker-php-entrypoint "$@"