Spaces:
Running
Running
Fix: Add --break-system-packages for pip install
Browse files- Dockerfile +32 -0
Dockerfile
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:22-bookworm
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
RUN corepack enable
|
| 6 |
+
|
| 7 |
+
# 安装 Python 和必要的包(用于文件同步)
|
| 8 |
+
RUN apt-get update && apt-get install -y python3 python3-pip && \
|
| 9 |
+
pip3 install --break-system-packages --no-cache-dir huggingface_hub && \
|
| 10 |
+
rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
RUN npm install -g clawdbot@latest \
|
| 13 |
+
&& mkdir -p /data/config /data/workspace /data/state
|
| 14 |
+
|
| 15 |
+
ENV CLAWDBOT_CONFIG_DIR=/data/config
|
| 16 |
+
ENV CLAWDBOT_WORKSPACE_DIR=/data/workspace
|
| 17 |
+
ENV CLAWDBOT_STATE_DIR=/data/state
|
| 18 |
+
ENV CLAWDBOT_CONFIG_PATH=/data/config/clawdbot.json
|
| 19 |
+
|
| 20 |
+
ENV NODE_ENV=production
|
| 21 |
+
ENV PORT=7860
|
| 22 |
+
ENV CLAWDBOT_GATEWAY_PORT=${PORT}
|
| 23 |
+
|
| 24 |
+
EXPOSE 7860
|
| 25 |
+
|
| 26 |
+
COPY entrypoint.sh /entrypoint.sh
|
| 27 |
+
COPY sync_files.py /app/sync_files.py
|
| 28 |
+
|
| 29 |
+
RUN chmod +x /entrypoint.sh && \
|
| 30 |
+
chmod +x /app/sync_files.py
|
| 31 |
+
|
| 32 |
+
CMD ["/entrypoint.sh"]
|