#!/bin/bash
# Script to build and push the MCP remote server Docker image
# Set your Docker Hub username
DOCKER_USERNAME="lallen30"
# Set the image name
IMAGE_NAME="mcp-server"
# Set the tag
TAG="latest"
echo "Building Docker image..."
docker buildx build --platform linux/amd64 -t $DOCKER_USERNAME/$IMAGE_NAME:$TAG . --no-cache --load
echo "Pushing image to Docker Hub..."
docker push $DOCKER_USERNAME/$IMAGE_NAME:$TAG
echo "Image pushed successfully!"
echo "To deploy on the remote server, run ./deploy.sh"