lobe-chat / Dockerfile
iouoracle's picture
Update Dockerfile
a17f436 verified
raw
history blame contribute delete
482 Bytes
# 使用 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