File size: 512 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
27
#!/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