bash
cd query_blogger_mcp_server
# Build Docker Image: This command reads your Dockerfile and creates a Docker image for your application. Wait for the build process to complete. You should see output indicating each step of the Dockerfile being executed.
docker build -t query-blogger-mcp-server .
# Run the Docker Container to fire-up MCP Server
docker run -d \
--name blogger_mcp_instance \
-p 8000:8000 \
-e BLOGGER_API_KEY="your_actual_google_blogger_api_key_here" \
-e ALLOWED_DOMAINS="kartzontech.blogspot.com,blog.codonomics.com" \
query-blogger-mcp-server
# Verify if Docker Container is up and running
docker ps
# You should see a list of running containers, and blogger_mcp_instance should be among them, with 0.0.0.0:8000->8000/tcp in the PORTS column.
# View Container Logs (For debugging/monitoring)
docker logs blogger_mcp_instance
# Stop and Remove the Container (When finished)
docker stop blogger_mcp_instance
docker rm blogger_mcp_instance