FROM node:20-alpine # 设置工作目录 WORKDIR /app # 安装基础工具 RUN apk add --no-cache git bash # 拉取云酒馆最新代码 RUN git clone https://github.com/SillyTavern/SillyTavern.git . # 安装运行所需的依赖 RUN npm install # 复制启动脚本并赋予执行权限 COPY start.sh /start.sh RUN chmod +x /start.sh # 暴露 Hugging Face 默认支持的 7860 端口 EXPOSE 7860 # 设置容器启动时运行的命令 CMD ["/start.sh"]