Files
max-bot-test/docker/php/entrypoint.sh
pkirillw 2f56578d7a
All checks were successful
Deploy Max Bot Test / deploy (push) Successful in 16s
fix(docker): entrypoint chowns storage at container start
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>
2026-06-18 00:47:55 +03:00

8 lines
166 B
Bash
Executable File

#!/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 "$@"