# 使用官方 Node.js 运行时作为基础镜像 FROM node:20-slim # 设置工作目录 WORKDIR /app # 安装 Python(比如构建阶段需要用到) RUN apt-get update && apt-get install -y python3 python3-pip \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir --break-system-packages agentscope # 安装 AgentScope Studio RUN npm install -g @agentscope/studio # 暴露默认端口(假设 Studio 使用 3000,如果不同请修改) EXPOSE 3000 # 容器启动时运行 Studio CMD ["as_studio"]