File size: 589 Bytes
ecbfb06 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# Simple script to test Docker build process
Write-Host "Testing Docker build process..."
# Create a simple test Dockerfile
Set-Content -Path "test.Dockerfile" -Value @'
FROM ubuntu:22.04
WORKDIR /app
COPY . .
RUN ls -la
'@
Write-Host "Building test image..."
docker build -f test.Dockerfile -t test-build .
if ($LASTEXITCODE -eq 0) {
Write-Host "✅ Test build successful!"
# Clean up
docker rmi test-build
Remove-Item test.Dockerfile
} else {
Write-Host "❌ Test build failed!"
# Clean up
Remove-Item test.Dockerfile
exit 1
} |