Spaces:
Sleeping
Sleeping
File size: 355 Bytes
aef25d1 6ca601d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # 使用官方 Node.js 的 Ubuntu 版本
FROM node:20-bookworm
# 全局安装 opencode-ai
RUN npm i -g opencode-ai
# 创建工作目录
WORKDIR /home/opencode
# 暴露端口
EXPOSE 7860
# 启动命令
CMD OPENCODE_BIN_PATH=/usr/local/lib/node_modules/opencode-ai/node_modules/opencode-linux-x64/bin/opencode opencode web --hostname 0.0.0.0 --port 7860 |