93b6fa3061
deploy cube / build-and-deploy (push) Has been cancelled
monorepo 第一刀: - workspace + crates/cube-core(base router / healthz / ServeDir SPA fallback / JSON tracing / SIGTERM shutdown) - apps/cube:axum 主程序 + Vite + Vue 3 + TS 门户(暗色调 + 渐变 logo + app 卡片网格) - Dockerfile:scratch + musl 静态二进制,镜像 2.6MB - k8s/:cube-cube ns + Deployment + Service + Ingress(cube.famzheng.me,traefik LE 自动签) - registry:新增 registry.famzheng.me ingress 反代到 gitea 内置 container registry, 自动化身份用 mochi(registry.famzheng.me/mochi/cube) - CI:.gitea/workflows/deploy-cube.yml,host shell runner(gnoc), build → push → kubectl rollout 五步流水 - README:把宪法段改成 monorepo 模式 + monorepo 目录结构 - 新增宪法条款:前端视图状态走 URL(path + query)保证可 bookmark
9 lines
356 B
Docker
9 lines
356 B
Docker
# cube app #0 — 入口门户
|
|
# Build context = repo root(不是 apps/cube/),所以路径都是 apps/cube/...
|
|
# build 流程在 host 上跑(不在容器里),见 README"构建:host musl + scratch 容器"
|
|
FROM scratch
|
|
COPY target/x86_64-unknown-linux-musl/release/cube /cube
|
|
COPY apps/cube/frontend/dist /dist
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/cube"]
|