pdf / test_docker_build.ps1
fokan's picture
Upload 42 files
ecbfb06 verified
raw
history blame contribute delete
589 Bytes
# 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
}