# FROM lobehub/lobe-chat:v0.99.1 | |
# 使用 multi-stage build | |
FROM cloudflare/cloudflared:latest as cloudflared | |
FROM node:20-slim as runner | |
WORKDIR /app | |
COPY --from=lobehub/lobe-chat:latest / ./ | |
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 startServer.js | |