File size: 1,019 Bytes
988607c
 
 
 
 
 
 
 
1f18827
988607c
 
 
 
 
4f7b10c
988607c
 
7fb3ab8
 
 
988607c
 
 
 
4f7b10c
7eb8e6d
4f7b10c
988607c
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM node:24-slim

# 系统依赖
RUN apt-get update && apt-get install -y \
    python3 python3-pip curl git procps lsof \
    && rm -rf /var/lib/apt/lists/*

# Python 依赖
RUN pip3 install flask psutil requests lark-oapi --break-system-packages

# 安装 OpenClaw
RUN npm install -g openclaw@latest

# 创建目录
RUN mkdir -p /root/.openclaw/workspace /root/.openclaw/extensions /root/.openclaw/credentials /root/.openclaw/skills

# 安装飞书插件
# 安装飞书插件 (禁用以避免 WebSocket 竞争)
# RUN openclaw plugins install feishu-openclaw 2>/dev/null || true
# RUN cd /root/.openclaw/extensions/feishu-openclaw && npm install @sinclair/typebox 2>/dev/null || true

# 复制文件
COPY SOUL.md /root/.openclaw/workspace/SOUL.md
COPY status_page.py /app/status_page.py
COPY image_proxy.py /app/image_proxy.py
COPY image_daemon.py /app/image_daemon.py
COPY skills/ /root/.openclaw/skills/
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh

EXPOSE 7860

CMD ["/app/entrypoint.sh"]