388b505e0b
- 后端 FastAPI 重写为 axum + rusqlite (musl static, 2.8MB) - 前端原样搬运 (Vue3 + Vite + Pinia + vue-router + vite-plugin-yaml) - k8s: cube-simpleasm ns + 1Gi PVC (k3s local-path) + Recreate strategy - CI: 复刻 deploy-cube.yml,按 apps/simpleasm/** 触发 - cube 门户里 simpleasm 状态从 pending 改成 live - 数据冷启 (Fam 拍板不带历史进度)
9 lines
336 B
Docker
9 lines
336 B
Docker
# simpleasm — asm.famzheng.me
|
|
# Build context = repo root(同 cube),所以路径都是 apps/simpleasm/...
|
|
# Rust + frontend 都在 host 上 build,容器只是拼装。
|
|
FROM scratch
|
|
COPY target/x86_64-unknown-linux-musl/release/simpleasm /simpleasm
|
|
COPY apps/simpleasm/frontend/dist /dist
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/simpleasm"]
|