pdf / test_docker_build.sh
fokan's picture
Upload 42 files
ecbfb06 verified
raw
history blame contribute delete
512 Bytes
#!/bin/bash
# Simple script to test Docker build process
echo "Testing Docker build process..."
# Create a simple test Dockerfile
cat > test.Dockerfile << 'EOF'
FROM ubuntu:22.04
WORKDIR /app
COPY . .
RUN ls -la
EOF
echo "Building test image..."
docker build -f test.Dockerfile -t test-build .
if [ $? -eq 0 ]; then
echo "✅ Test build successful!"
# Clean up
docker rmi test-build
rm test.Dockerfile
else
echo "❌ Test build failed!"
# Clean up
rm test.Dockerfile
exit 1
fi