silly444 / Dockerfile
jjlineeee's picture
Update Dockerfile
4bd87c2 verified
Raw
History Blame Contribute Delete
423 Bytes
# 使用 Node.js 镜像
FROM node:18-bullseye-slim
# 安装基础工具
RUN apt-get update && apt-get install -y git
# 这一步是关键:直接让 HF 在启动时去抓取 GitHub 的最新代码
RUN git clone https://github.com/SillyTavern/SillyTavern /app
WORKDIR /app
# 安装依赖
RUN npm install --production
# 设置 HF 必须的 7860 端口
ENV PORT=7860
EXPOSE 7860
# 启动酒馆
CMD ["node", "server.js"]