-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-build.bat
More file actions
49 lines (43 loc) · 1.21 KB
/
Copy pathdocker-build.bat
File metadata and controls
49 lines (43 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
echo ============================================
echo MCP Blogs Server v2.0 — Docker Rebuild
echo ============================================
echo.
cd /d "C:\Users\Sohail Shabbir\Desktop\MCP blogs server"
echo [1/4] Compiling TypeScript...
call npm run build
if %errorlevel% neq 0 (
echo.
echo ERROR: TypeScript build failed. Fix the errors above and try again.
pause
exit /b 1
)
echo TypeScript compiled successfully.
echo.
echo [2/4] Stopping old Docker container if running...
docker stop mcp-blogs-server 2>nul
docker rm mcp-blogs-server 2>nul
echo Done.
echo.
echo [3/4] Building Docker image (no cache)...
docker build --no-cache -t mcp-blogs-server:latest .
if %errorlevel% neq 0 (
echo.
echo ERROR: Docker build failed. Check the errors above.
pause
exit /b 1
)
echo Docker image built successfully.
echo.
echo [4/4] Verifying image exists...
docker images mcp-blogs-server:latest
echo.
echo ============================================
echo BUILD COMPLETE — v2.0 ready
echo ============================================
echo.
echo Next steps:
echo 1. Restart Claude Desktop to reload the MCP server
echo 2. Test with: Use analyze_competitors with keyword "football"
echo.
pause