Skip to main content
Glama
Dockerfile1.78 kB
FROM python:3.11-slim WORKDIR /app ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ UV_SYSTEM_PYTHON=1 \ UV_CACHE_DIR=/root/.cache/uv \ UV_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple \ PLAYWRIGHT_DOWNLOAD_HOST=https://npmmirror.com/mirrors/playwright RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources 2>/dev/null || \ sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list 2>/dev/null || true RUN apt-get update && apt-get install -y \ curl \ git \ build-essential \ cron \ libnss3 \ libnspr4 \ libatk1.0-0 \ libatk-bridge2.0-0 \ libcups2 \ libdrm2 \ libdbus-1-3 \ libxkbcommon0 \ libxcomposite1 \ libxdamage1 \ libxfixes3 \ libxrandr2 \ libgbm1 \ libasound2 \ libpango-1.0-0 \ libcairo2 \ && rm -rf /var/lib/apt/lists/* RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \ pip config set global.trusted-host pypi.tuna.tsinghua.edu.cn RUN pip install --no-cache-dir uv COPY pyproject.toml uv.lock README.md ./ RUN uv sync --frozen RUN uv run playwright install chromium && \ uv run playwright install-deps chromium COPY src/ ./src/ COPY scripts/ ./scripts/ RUN mkdir -p data downloads logs && \ chmod -R 755 /app && \ chmod +x scripts/*.sh 2>/dev/null || true # 配置日志清理 cron 任务(每天凌晨2点执行) RUN echo "0 2 * * * /app/scripts/cleanup_logs.sh >> /app/logs/cleanup.log 2>&1" | crontab - || true EXPOSE 8000 HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ CMD curl -f http://localhost:8000/health || exit 1 # 启动命令(使用 entrypoint 脚本) CMD ["/app/scripts/entrypoint.sh"]

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/luyike221/xiaohongshu-mcp-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server