mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
remove gosu
This commit is contained in:
1
debian/Dockerfile
vendored
1
debian/Dockerfile
vendored
@@ -9,7 +9,6 @@ ARG php_extra="opcache"
|
|||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
default-mysql-client \
|
default-mysql-client \
|
||||||
gpg \
|
gpg \
|
||||||
gosu \
|
|
||||||
supervisor \
|
supervisor \
|
||||||
# Unicode support for PDF
|
# Unicode support for PDF
|
||||||
fonts-noto-cjk-extra \
|
fonts-noto-cjk-extra \
|
||||||
|
|||||||
6
debian/scripts/init.sh
vendored
6
debian/scripts/init.sh
vendored
@@ -56,9 +56,9 @@ if [ "$*" = 'supervisord -c /etc/supervisor/conf.d/supervisord.conf' ]; then
|
|||||||
|
|
||||||
# Clear and cache config in production
|
# Clear and cache config in production
|
||||||
if [ "$APP_ENV" = "production" ]; then
|
if [ "$APP_ENV" = "production" ]; then
|
||||||
gosu www-data php artisan optimize
|
runuser -u www-data -- php artisan optimize
|
||||||
gosu www-data php artisan package:discover
|
runuser -u www-data -- php artisan package:discover
|
||||||
gosu www-data php artisan migrate --force
|
runuser -u www-data -- php artisan migrate --force
|
||||||
|
|
||||||
# If first IN run, it needs to be initialized
|
# If first IN run, it needs to be initialized
|
||||||
echo "Checking initialization status..."
|
echo "Checking initialization status..."
|
||||||
|
|||||||
Reference in New Issue
Block a user