File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,18 +15,18 @@ RUN pip install uv
1515COPY pyproject.toml uv.lock README.md ./
1616COPY src/ ./src/
1717
18- # Install dependencies
19- RUN uv sync --no-dev
18+ # Install dependencies (include all, not just non-dev)
19+ RUN uv sync
2020
2121# Set environment variables
2222ENV ENVIRONMENT=production
23-
24- # The PORT is set by Railway
2523ENV PORT=8080
2624
25+ # Add virtual environment to PATH
26+ ENV PATH="/app/.venv/bin:$PATH"
27+
2728# Expose port (Railway sets this dynamically)
2829EXPOSE 8080
2930
30- # Run the MCP HTTP server
31- # Railway sets PORT env var, default to 8080
32- CMD sh -c "uv run uvicorn rosetta.api.mcp_http:app --host 0.0.0.0 --port \${PORT:-8080}"
31+ # Run the MCP HTTP server directly using the venv python
32+ CMD ["sh", "-c", "python -m uvicorn rosetta.api.mcp_http:app --host 0.0.0.0 --port ${PORT:-8080}"]
You can’t perform that action at this time.
0 commit comments