File size: 446 Bytes
00e5fc5 d804b63 ec19e3a d804b63 efadbc5 00e5fc5 efadbc5 d804b63 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# 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
|