Spaces:
Sleeping
Sleeping
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
|
@@ -4,6 +4,11 @@ WORKDIR /app
|
|
| 4 |
|
| 5 |
RUN corepack enable
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
RUN npm install -g clawdbot@latest \
|
| 8 |
&& mkdir -p /data/config /data/workspace /data/state
|
| 9 |
|
|
@@ -19,6 +24,9 @@ ENV CLAWDBOT_GATEWAY_PORT=${PORT}
|
|
| 19 |
EXPOSE 7860
|
| 20 |
|
| 21 |
COPY entrypoint.sh /entrypoint.sh
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
CMD ["/entrypoint.sh"]
|
|
|
|
| 4 |
|
| 5 |
RUN corepack enable
|
| 6 |
|
| 7 |
+
# 安装 Python 和必要的包(用于文件同步)
|
| 8 |
+
RUN apt-get update && apt-get install -y python3 python3-pip && \
|
| 9 |
+
pip3 install --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 |
|
|
|
|
| 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"]
|