From 677cc44a1599f4c099f5edd1b5b81246dc09ffa9 Mon Sep 17 00:00:00 2001 From: Benjamin Brummer Date: Sat, 21 Dec 2024 20:31:42 +0100 Subject: [PATCH] remove gosu --- debian/Dockerfile | 1 - debian/scripts/init.sh | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/debian/Dockerfile b/debian/Dockerfile index c55687b..1e1d565 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -9,7 +9,6 @@ ARG php_extra="opcache" RUN apt-get update && apt-get install -y --no-install-recommends \ default-mysql-client \ gpg \ - gosu \ supervisor \ # Unicode support for PDF fonts-noto-cjk-extra \ diff --git a/debian/scripts/init.sh b/debian/scripts/init.sh index 25b0727..8acc15d 100755 --- a/debian/scripts/init.sh +++ b/debian/scripts/init.sh @@ -56,9 +56,9 @@ if [ "$*" = 'supervisord -c /etc/supervisor/conf.d/supervisord.conf' ]; then # Clear and cache config in production if [ "$APP_ENV" = "production" ]; then - gosu www-data php artisan optimize - gosu www-data php artisan package:discover - gosu www-data php artisan migrate --force + runuser -u www-data -- php artisan optimize + runuser -u www-data -- php artisan package:discover + runuser -u www-data -- php artisan migrate --force # If first IN run, it needs to be initialized echo "Checking initialization status..."