parametrize docker image

This commit is contained in:
Kamil Grabowski committed 2025-06-25 14:16:30 +02:00
1 parent 4200625b1d
commit 8e7b2f50ad
3 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -26,4 +26,4 @@ RUN npm ci --ignore-scripts --omit-dev
USER node
CMD ["node", "dist/index.js", "--host", "0.0.0.0", "--port", "8080", "--transport", "http"]
CMD ["node", "dist/index.js"]
+3
View File
@@ -9,6 +9,9 @@ services:
delay: 5s
environment:
- BRAVE_API_KEY
- BRAVE_MCP_TRANSPORT=http
- BRAVE_MCP_PORT=8080
- BRAVE_MCP_HOST=0.0.0.0
init: true
ports:
- 8080:8080
+3 -3
View File
@@ -19,9 +19,9 @@ if (!BRAVE_API_KEY) {
}
const program = new Command()
.option("--transport <stdio|http>", "transport type", "http")
.option("--port <number>", "desired port for HTTP transport", "3000")
.option("--host <string>", "host address to bind to for HTTP transport", "127.0.0.1")
.option("--transport <stdio|http>", "transport type", process.env.BRAVE_MCP_TRANSPORT ?? "stdio")
.option("--port <number>", "desired port for HTTP transport", process.env.BRAVE_MCP_PORT ?? "3000")
.option("--host <string>", "host address to bind to for HTTP transport", process.env.BRAVE_MCP_HOST ?? "0.0.0.0")
.allowUnknownOption()
.parse(process.argv);