Commit Graph

7 Commits

Author SHA1 Message Date
ZhenYi
603e14e53b fix: frontend built from repo root, dist/ copied into nginx image
vite.config.ts, package.json, and src/ are at the repo root.
pnpm build outputs to dist/ at the root. COPY dist/ not apps/frontend/dist/.
2026-04-15 13:17:07 +08:00
ZhenYi
65a34a627f refactor: build frontend externally, copy dist into nginx image
- frontend.Dockerfile: runtime-only, COPY apps/frontend/dist instead of building in Docker
- build.js: add frontend build step (pnpm build) before docker build
- drone.yml: remove obsolete frontend-deps/frontend-build steps
2026-04-15 13:00:34 +08:00
ZhenYi
fd724ca4ae chore: use timestamp as default image tag (YYYY-MM-DD-HH) 2026-04-15 10:16:13 +08:00
ZhenYi
852dec099d remove migrate service
Migrations run automatically on app startup; no separate migrate binary or
image needed.
2026-04-15 09:57:20 +08:00
ZhenYi
dfe4cb6207 refactor: local compile + docker push workflow
- build.js: cargo build first, then docker build — no more Docker-in-Docker
- .dockerignore: exclude target/ but re-include
  target/x86_64-unknown-linux-gnu/release/ so pre-built binaries
  are available in Docker build context
2026-04-15 09:53:45 +08:00
ZhenYi
2d2e295bf3 refactor: build Rust binaries externally, COPY into minimal runtime images
- Strip builder stage from all Rust Dockerfiles; images now only contain
  the runtime and a pre-built binary copied from target/.
- build.js: cargo builds all Rust binaries first (using all CPU cores),
  then copies them into Docker images.
- .drone.yml: add cargo-build step before docker-build so kaniko can COPY
  the pre-compiled binaries without rebuilding inside the image.
2026-04-15 09:32:27 +08:00
ZhenYi
93cfff9738 init 2026-04-15 09:08:09 +08:00