feat(docker): update Docker configuration for Arvan Cloud registry and add API documentation generation

This commit is contained in:
2026-06-05 19:18:31 +03:30
parent 6eae917540
commit 0b99ab2119
7 changed files with 5785 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env sh
set -eu
sources="/etc/apt/sources.list.d/debian.sources"
if [ ! -f "$sources" ]; then
exit 0
fi
sed -i \
-e 's|https\?://deb\.debian\.org/debian|http://mirror.arvancloud.ir/debian|g' \
-e 's|https\?://security\.debian\.org/debian-security|http://mirror.arvancloud.ir/debian|g' \
-e 's| bookworm-updates||g' \
"$sources"
sed -i '/mirror\.arvancloud\.ir\/debian-security/d' "$sources"

View File

@@ -0,0 +1,3 @@
{
"registry-mirrors": ["https://docker.arvancloud.ir"]
}

View File

@@ -7,6 +7,7 @@ mkdir -p \
storage/framework/sessions \
storage/framework/views \
storage/logs \
storage/api-docs \
bootstrap/cache
if [ ! -L public/storage ]; then
@@ -25,6 +26,10 @@ if [ -z "${APP_KEY:-}" ]; then
fi
if [ "${APP_ENV:-production}" = "production" ]; then
if php artisan list --raw 2>/dev/null | grep -q '^l5-swagger:generate'; then
php artisan l5-swagger:generate --no-interaction
fi
php artisan config:cache --no-interaction
php artisan event:cache --no-interaction
php artisan view:cache --no-interaction

5736
docker/php/install-php-extensions Executable file

File diff suppressed because it is too large Load Diff