Skip to content

Commit 2fb41a5

Browse files
committed
fix: add Dockerfile for Railway deployment
Rename Dockerfile.docker to Dockerfile to match railway.toml configuration
1 parent 5fa1825 commit 2fb41a5

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

‎Dockerfile‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Late MCP HTTP Server - Railway Deployment
2+
# Uses uv for fast, reliable dependency management
3+
4+
FROM ghcr.io/astral-sh/uv:python3.12-slim
5+
6+
WORKDIR /app
7+
8+
# Copy dependency files
9+
COPY pyproject.toml uv.lock README.md ./
10+
COPY src ./src
11+
12+
# Install dependencies (no dev dependencies in production)
13+
RUN --mount=type=cache,id=uv-cache,target=/root/.cache/uv \
14+
uv sync --frozen --no-dev --extra mcp
15+
16+
# Expose port (Railway will set PORT env var)
17+
EXPOSE 8080
18+
19+
# Health check for Railway monitoring (Railway will use /health endpoint)
20+
21+
# Run HTTP server (Railway sets PORT env var automatically)
22+
CMD ["sh", "-c", "uv run late-mcp-http --host 0.0.0.0 --port ${PORT:-8080}"]

0 commit comments

Comments
 (0)