vendor_report/verify_docker_image.ps1
2025-11-07 02:42:28 +04:00

33 lines
1.2 KiB
PowerShell

# Verify what's actually in the Docker image
param(
[string]$ImageName = "vendor-report-api-test"
)
Write-Host "=== Verifying Docker Image Contents ===" -ForegroundColor Cyan
# Build the image
Write-Host "`n1. Building image: $ImageName" -ForegroundColor Yellow
docker build -t $ImageName . 2>&1 | Select-String "COPY|Step"
# Check line 794 in the image
Write-Host "`n2. Checking line 794 in Docker image:" -ForegroundColor Yellow
docker run --rm $ImageName sed -n '794p' /app/html_generator.py
# Check line 1284 in the image
Write-Host "`n3. Checking line 1284 in Docker image:" -ForegroundColor Yellow
docker run --rm $ImageName sed -n '1284p' /app/html_generator.py
# Try to import the module
Write-Host "`n4. Testing Python import in Docker:" -ForegroundColor Yellow
docker run --rm $ImageName python -c "import html_generator; print('SUCCESS')" 2>&1
# Compare with local file
Write-Host "`n5. Local file line 794:" -ForegroundColor Yellow
Get-Content html_generator.py | Select-Object -Index 793
Write-Host "`n6. Local file line 1284:" -ForegroundColor Yellow
Get-Content html_generator.py | Select-Object -Index 1283
Write-Host "`n=== Done ===" -ForegroundColor Cyan