#!/bin/bash # Tournament Application Docker Build Script set -e echo "🏗️ Building Tournament Application Docker Image..." # Check if we're in the docker directory if [ ! -f "docker-compose.yml" ]; then echo "❌ Error: Please run this script from the docker directory" exit 1 fi # Build the application image echo "📦 Building application image..." docker build -t tournament-app -f Dockerfile .. # Check if build was successful if [ $? -eq 0 ]; then echo "✅ Application image built successfully!" else echo "❌ Failed to build application image" exit 1 fi echo "🎉 Build completed successfully!" echo "" echo "To run the application:" echo " docker-compose up -d" echo "" echo "To view logs:" echo " docker-compose logs -f" echo "" echo "To stop the application:" echo " docker-compose down"