#!/bin/bash set -e echo "Building Docker image..." docker build -t lcar-weather . echo "Stopping existing container if running..." docker stop lcar-weather 2>/dev/null || true docker rm lcar-weather 2>/dev/null || true echo "Starting container on port 9431..." docker run -d \ --name lcar-weather \ -p 9431:9431 \ --env-file .env \ --add-host host.docker.internal:host-gateway \ lcar-weather echo "Container started successfully!" echo "Access at: http://localhost:9431" echo "" echo "View logs: docker logs -f lcar-weather" echo "Stop: docker stop lcar-weather"