Files
cube/apps/notes/feishu/Dockerfile
T
Fam Zheng e56e2138a8
deploy notes / build-and-deploy (push) Successful in 2m40s
notes(feishu): Dockerfile 加 curl(lark-cli npm postinstall 依赖)
2026-05-17 22:23:57 +01:00

25 lines
861 B
Docker

# notes feishu sidecar:跑 markdown-to-feishu 把会议纪要 push 飞书 docx。
# 跟 notes 主容器同 pod、共享 PVC(看到主容器在 /data/feishu-tmp/<id>/ 写好的 md + 附件)。
FROM node:20-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 python3-pip python3-markdown ca-certificates curl \
&& rm -rf /var/lib/apt/lists/*
# lark-cli postinstall 调 curl 下二进制,没 curl 会报 spawnSync ENOENT
RUN npm install -g @larksuite/cli@1.0.29
RUN pip install --no-cache-dir --break-system-packages \
fastapi==0.115.6 \
uvicorn==0.34.0
COPY markdown-to-feishu /usr/local/bin/markdown-to-feishu
RUN chmod +x /usr/local/bin/markdown-to-feishu
COPY server.py /app/server.py
ENV PYTHONUNBUFFERED=1
WORKDIR /app
EXPOSE 8002
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8002"]