Dockerfile 667 B

12345678910111213141516
  1. # 使用现有的镜像作为基础镜像
  2. FROM docker.all-hands.dev/all-hands-ai/runtime:0.17-nikolaik
  3. # 设置代理服务器
  4. ENV http_proxy=http://192.168.2.11:1881
  5. ENV https_proxy=http://192.168.2.11:1881
  6. ENV no_proxy=localhost,127.0.0.1
  7. # 安装 code-server
  8. RUN curl -fsSL https://code-server.dev/install.sh | sh
  9. COPY OpenHands/openhands/runtime/plugins/vscode/__init__.py /openhands/code/openhands/runtime/plugins/vscode/__init__.py
  10. COPY OpenHands/openhands/runtime/impl/eventstream/eventstream_runtime.py /openhands/code/openhands/runtime/impl/eventstream/eventstream_runtime.py
  11. # 清除代理设置(可选)
  12. ENV http_proxy=
  13. ENV https_proxy=
  14. ENV no_proxy=