File size: 482 Bytes
43e5782
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 使用 multi-stage build
FROM cloudflare/cloudflared:latest as cloudflared

FROM node:20-slim as runner
WORKDIR /app

# 从 lobe-chat 复制所有文件,并保持正确的文件结构
COPY --from=lobehub/lobe-chat:latest /app /app
COPY --from=cloudflared /usr/local/bin/cloudflared /usr/local/bin/cloudflared

# 设置端口
EXPOSE 3210
ENV PORT=3210

# 使用 node 作为基础镜像的启动命令
CMD cloudflared tunnel --no-autoupdate run --token $CF_TOKEN & node server.js