remove gosu

This commit is contained in:
Benjamin Brummer
2024-12-21 20:31:42 +01:00
parent 91c7b1ea2a
commit 677cc44a15
2 changed files with 3 additions and 4 deletions

1
debian/Dockerfile vendored
View File

@@ -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 \

View File

@@ -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..."