Remove user/permission management for Dokploy deployment
- Dockerfile: remove appuser creation, run everything as root - www.conf: switch php-fpm workers to www-data - entrypoint.sh: remove all chown and git safe.directory workarounds - docker-compose.yml: remove USER_ID/GROUP_ID build args - .env.example: remove USER_ID/GROUP_ID variables
This commit is contained in:
@@ -5,12 +5,6 @@ echo "========================================="
|
||||
echo " TerManager2 - Entrypoint"
|
||||
echo "========================================="
|
||||
|
||||
# -----------------------------------------------
|
||||
# 0. Fix permissions & git safe directory
|
||||
# -----------------------------------------------
|
||||
git config --global --add safe.directory /var/www/html
|
||||
chown -R appuser:appuser /var/www/html/storage /var/www/html/bootstrap/cache
|
||||
|
||||
# -----------------------------------------------
|
||||
# 1. Composer install
|
||||
# -----------------------------------------------
|
||||
@@ -93,11 +87,6 @@ echo "========================================="
|
||||
echo " TerManager2 - Ready!"
|
||||
echo "========================================="
|
||||
|
||||
# -----------------------------------------------
|
||||
# Fix final ownership
|
||||
# -----------------------------------------------
|
||||
chown -R appuser:appuser /var/www/html/vendor /var/www/html/node_modules /var/www/html/public/build /var/www/html/storage /var/www/html/bootstrap/cache 2>/dev/null || true
|
||||
|
||||
# -----------------------------------------------
|
||||
# Execute CMD (default: php-fpm)
|
||||
# -----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user