jjlineeee commited on
Commit
64f93b1
·
verified ·
1 Parent(s): 33063c1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -16
Dockerfile CHANGED
@@ -1,17 +1,6 @@
1
- FROM node:20-slim
2
-
3
- # 安装 git(必要工具)
4
- RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
5
-
6
  WORKDIR /app
7
-
8
- # 克隆代码并安装依赖(--depth 1 保证下载最快,不会中途取消)
9
- RUN git clone --depth 1 https://github.com/SillyTavern/SillyTavern.git . \
10
- && npm install --omit=dev --no-audit --no-fund
11
-
12
- # 强行指定端口和访问权限
13
- ENV HOST=0.0.0.0
14
- ENV PORT=7860
15
-
16
- # 终极启动指令:直接拆掉安全门(解决 Forbidden)
17
- CMD ["node", "server.js", "--listen", "true", "--whitelistMode", "false"]
 
1
+ FROM node:18-alpine
 
 
 
 
2
  WORKDIR /app
3
+ RUN apk add --no-cache git
4
+ RUN git clone https://github.com/fuwei99/SillyTavern-Docker.git .
5
+ RUN npm install
6
+ CMD ["node", "server.js"]