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