pdf / test_dockerfile_fix.ps1
fokan's picture
Upload 48 files
943fd62 verified
# Test script to validate Dockerfile changes
Write-Host "Testing Dockerfile changes..." -ForegroundColor Green
# Check if Dockerfile exists
if (Test-Path "Dockerfile") {
Write-Host "✓ Dockerfile found" -ForegroundColor Green
# Check if arabic_fonts_setup.sh exists
if (Test-Path "arabic_fonts_setup.sh") {
Write-Host "✓ arabic_fonts_setup.sh found" -ForegroundColor Green
# Check Dockerfile content for the fixed script execution
$dockerfileContent = Get-Content "Dockerfile" -Raw
if ($dockerfileContent -match "if \[ -f `"arabic_fonts_setup.sh`" \]") {
Write-Host "✓ Dockerfile has the fixed script execution logic" -ForegroundColor Green
} else {
Write-Host "✗ Dockerfile is missing the fixed script execution logic" -ForegroundColor Red
}
} else {
Write-Host "✗ arabic_fonts_setup.sh not found" -ForegroundColor Red
}
} else {
Write-Host "✗ Dockerfile not found" -ForegroundColor Red
}
Write-Host "Dockerfile validation complete." -ForegroundColor Green