Skip to content

Commit d5da035

Browse files
Copilothustcc
andauthored
Fix TypeError in Docker local deployment (#272)
* Initial plan * Fix TypeError: upgrade Node.js from 16 to LTS in Docker examples, add engines requirement Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
1 parent 3ba8b96 commit d5da035

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

docker/sse/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Use Node.js 16 as the base image
2-
FROM node:16
1+
# Use Node.js LTS as the base image (Node.js 18+ required)
2+
FROM node:lts
33

44
# Set workdir
55
WORKDIR /app

docker/streamable/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Use Node.js 16 as the base image
2-
FROM node:16
1+
# Use Node.js LTS as the base image (Node.js 18+ required)
2+
FROM node:lts
33

44
# Set workdir
55
WORKDIR /app

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
"url": "https://antv.antgroup.com/"
4343
},
4444
"license": "MIT",
45+
"engines": {
46+
"node": ">=18"
47+
},
4548
"dependencies": {
4649
"@modelcontextprotocol/sdk": "^1.25.2",
4750
"axios": "^1.11.0",

0 commit comments

Comments
 (0)