Skip to content

Commit 61e4ad3

Browse files
committed
fix: drop unsupported buildContext/dockerfilePath from mcp railway.json
CodeRabbit flagged buildContext as unsupported. Confirmed against Railway's config schema: supported build keys are builder, watchPatterns, buildCommand, dockerfilePath, railpackVersion. buildContext was silently ignored. Railway sets the Docker build context via the service Root Directory, not a config key, so the MCP service must set Root Directory=mcp-server in the dashboard; with that, the context is mcp-server/ and the Dockerfile is auto-detected, so dockerfilePath is dropped too (a repo-root-relative path is wrong inside the restricted context). Keeps only supported keys + the deploy healthcheck block.
1 parent 435c4e3 commit 61e4ad3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

mcp-server/railway.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"$schema": "https://railway.app/railway.schema.json",
33
"build": {
4-
"builder": "DOCKERFILE",
5-
"dockerfilePath": "mcp-server/Dockerfile",
6-
"buildContext": "mcp-server"
4+
"builder": "DOCKERFILE"
75
},
86
"deploy": {
97
"restartPolicyType": "ON_FAILURE",

0 commit comments

Comments
 (0)