#!/bin/bash set -e # Build the Docker image docker build -t frontend:latest . # Stop and remove the existing container docker stop frontend || true docker rm frontend || true # Run the new container docker run -d --name frontend -p 5173:5173 frontend:latest