mirror of
https://github.com/luxfi/issuer.git
synced 2026-10-30 16:22:14 +00:00
@luxfi/issuer. No history, no remote, not on GitHub, unpublished. Co-authored-by: Hanzo Dev <[email protected]>
21 lines
653 B
Docker
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"]
|