8 Commits
Author SHA1 Message Date
zeekayandHanzo Dev 5ffbaa9260 keep the workspace layout in the runtime image
Error: Cannot find module 'express'
    Require stack: - /app/dist/server.js

The image built, pushed and then could not start. pnpm links dependencies with
RELATIVE symlinks that count directories from where they sit —

    app/server/node_modules/express     -> ../../../node_modules/.pnpm/express@…
    app/server/node_modules/@luxfi/core -> ../../../../pkg/core

— and the runtime stage flattened app/server/node_modules into /app/node_modules,
which moves every one of those links two directories too high. They then resolve
above the filesystem root and the first require fails. Nothing about the copy
looks wrong; the links are simply measured from somewhere else now.

So the layout is reproduced exactly rather than tidied, and WORKDIR moves to meet
it. /app/pkg comes along because @luxfi/core and @luxfi/utila are workspace links
that point into it.

Caught by the smoke rather than by production, which is the whole reason it runs
the container instead of trusting a green build.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-07 21:29:09 -07:00
zeekayandHanzo Dev df36398766 copy scripts/ — the root postinstall needs it
Error: Cannot find module '/app/scripts/patch-hanzogui-exports.cjs'

The root package.json runs that script on postinstall, so pnpm install exits 1
without it and the deps stage never completes. Copied rather than skipped with
--ignore-scripts, which would also drop @prisma/client's postinstall and would
make the image's install a second, subtly different install from the one
everyone runs locally. It guards every path with existsSync, so with none of the
@hanzo/gui packages present it is a no-op.

Second failure in the same stage, found the same way: one broken step at a time,
now that the build actually reports.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-07 21:03:38 -07:00
zeekayandHanzo Dev bbbf7c90fe the server image could not build at all — copy and build @luxfi/utila
ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In app/server: "@luxfi/utila@workspace:^"
    is in the dependencies but no package named "@luxfi/utila" is present
    in the workspace

app/server took a dependency on @luxfi/utila and the Dockerfile was never told.
It copies a manifest per workspace dep, and pnpm resolves `workspace:` ranges
against the manifests present in the tree — a missing one is not a slow fallback
to the registry, it is a hard failure. So every build of this image since that
dependency landed has died in the deps stage, which is why ghcr's newest tag
predates it.

utila also has to be BUILT: its package.json points main at ./dist/index.cjs.js
and dist is gitignored, so an unbuilt dep fails at container start rather than at
build time. domain/utila.ts and domain/cosigners.ts import createGrpcClient and
serviceAccountAuthStrategy for real, not just as types.

Found because .hanzo/workflows/server.yml finally made the failure visible. It
was never a CI problem — .github/workflows queued forever against a dead pool and
reported nothing, so a broken Dockerfile looked exactly like a missing runner.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-07 21:00:56 -07:00
zeekay 4199614654 fix: update bridge server for MPC integration and k8s deployment
Updated MPC wallet integration, network configuration, swap handling,
and added k8s MPC deployment manifest.
2026-03-12 16:13:53 -07:00
venuswhispers 23dbd6682e fix: lux signer env 2024-11-27 16:41:55 +08:00
venuswhispers 7622f8022d updated: utila stuffs 2024-11-27 15:44:32 +08:00
venuswhispers 65129de687 updated: docker file 2024-11-25 05:42:03 +08:00
zeekay f34110e107 Update project structure, split out settings to pkg 2024-11-13 17:52:39 -08:00