#!/bin/bash echo "๐Ÿ”จ Testing Docker build with static file collection..." # Build the production image echo "Building production Docker image..." docker build --target production -t django-template-test . || { echo "โŒ Docker build failed" exit 1 } echo "โœ… Docker build completed successfully" # Test if static files were collected during build echo "๐Ÿ” Checking if static files were collected during build..." docker run --rm django-template-test ls -la /app/staticfiles/ | head -10 echo "๐Ÿ“ Static files found in build:" docker run --rm django-template-test find /app/staticfiles -name "*.css" -o -name "*.js" | head -5 echo "๐Ÿงช Build test completed. If you see static files above, the build-time collection is working!"