yadinae commited on
Commit
29f452b
·
verified ·
1 Parent(s): bba77d3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -7
Dockerfile CHANGED
@@ -14,18 +14,13 @@ RUN curl -fsSL https://opencode.ai/install | bash
14
  # 4. 安装 同步库
15
  RUN pip3 install huggingface_hub --break-system-packages
16
 
17
- # 5. 预设关键目录
18
- RUN mkdir -p /root/project/data /root/project/config
19
 
20
  # 6. 脚本进场
21
- COPY sync.py /sync.py
22
  COPY entrypoint.sh /entrypoint.sh
23
  RUN chmod +x /entrypoint.sh
24
 
25
- # 骚操作:配置快捷命令别名
26
- RUN echo "alias sync='PYTHONPATH=/ python3 -c "from sync import upload_all; upload_all()"'" >> /root/.bashrc && \
27
- echo "alias restore='PYTHONPATH=/ python3 -c "from sync import download_all; download_all()"'" >> /root/.bashrc
28
-
29
  ENV PORT=7860
30
  EXPOSE 7860
31
  CMD ["/bin/bash", "/entrypoint.sh"]
 
14
  # 4. 安装 同步库
15
  RUN pip3 install huggingface_hub --break-system-packages
16
 
17
+ # 5. 安装Hermes agent
18
+ RUN curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
19
 
20
  # 6. 脚本进场
 
21
  COPY entrypoint.sh /entrypoint.sh
22
  RUN chmod +x /entrypoint.sh
23
 
 
 
 
 
24
  ENV PORT=7860
25
  EXPOSE 7860
26
  CMD ["/bin/bash", "/entrypoint.sh"]