diff --git a/build/entrypoint.sh b/build/entrypoint.sh deleted file mode 100755 index 8dfa5b9..0000000 --- a/build/entrypoint.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -set -e - -if [ -n "$WWWUSER" ] && [ "$WWWUSER" != "0" ]; then - deluser www-data 2>/dev/null || true - adduser -D -u "$WWWUSER" -G www-data www-data 2>/dev/null || true -fi - -if [ -n "$WWWGROUP" ] && [ "$WWWGROUP" != "0" ]; then - delgroup www-data 2>/dev/null || true - addgroup -g "$WWWGROUP" www-data 2>/dev/null || true -fi - -composer install --no-interaction -npm install -mkdir -p storage/logs storage/framework/views storage/framework/cache storage/framework/sessions -chown -R www-data:www-data storage bootstrap/cache -chmod -R 775 storage bootstrap/cache - -if [ "$APP_ENV" = "production" ] || [ "$APP_ENV" = "prod" ]; then - npm run build -fi - -php artisan migrate --force - -exec "$@"