File size: 549 Bytes
f1a23ca 5e1eef7 9e20c41 5e1eef7 f1a23ca | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # 使用官方 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"] |