浏览代码

Dockerize crypto-mcp with uvicorn

Lukas Goldschmidt 1 月之前
父节点
当前提交
4fa40e5ba3
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      Dockerfile

+ 19 - 0
Dockerfile

@@ -0,0 +1,19 @@
+FROM python:3.13-slim
+
+WORKDIR /app
+
+# Install deps first (better caching)
+COPY requirements.txt ./
+RUN pip install --no-cache-dir -r requirements.txt
+
+# Copy server code
+COPY . ./
+
+# Default values (override in compose)
+ENV HOST=0.0.0.0
+ENV PORT=8505
+
+EXPOSE 8505
+
+# Start FastMCP via Uvicorn
+CMD ["python", "-m", "uvicorn", "server_fastmcp:app", "--host", "0.0.0.0", "--port", "8505"]