Files
zeekayandHanzo Dev 8b7280b6fa chore: initial commit — tree had no git at all
@luxfi/issuer. No history, no remote, not on GitHub, unpublished.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 11:56:00 -07:00

21 lines
653 B
Docker

# Build the SPA, then serve it with a tiny zero-dep Node static server.
# No nginx / caddy (Hanzo stack rule). Single-arch linux/amd64 (DOKS).
FROM node:22-alpine AS builder
WORKDIR /src
RUN corepack enable
COPY package.json pnpm-lock.yaml* ./
RUN pnpm install --frozen-lockfile || pnpm install
COPY . .
# Sandbox-only console. App config is baked at build time (Vite import.meta.env).
ENV VITE_BANK_API_URL=https://api.lux.financial
RUN pnpm build
FROM node:22-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=3000
COPY --from=builder /src/dist ./dist
COPY --from=builder /src/serve.mjs ./serve.mjs
EXPOSE 3000
CMD ["node", "serve.mjs"]