mirror of
https://github.com/luxfi/financial.git
synced 2026-10-30 16:55:56 +00:00
21 lines
590 B
Docker
21 lines
590 B
Docker
# Build stage
|
|
FROM node:20-alpine AS build
|
|
WORKDIR /src
|
|
ENV CI=true
|
|
RUN npm install -g pnpm@10
|
|
COPY . .
|
|
RUN pnpm install --frozen-lockfile
|
|
RUN pnpm --filter @luxbank/brand build
|
|
RUN cd app/site && STATIC_EXPORT=1 pnpm build
|
|
# Build a Pagefind search index over the exported site.
|
|
# The resulting /pagefind/* is served statically and loaded lazily by the
|
|
# CommandPalette in src/components/CommandPalette.
|
|
RUN cd app/site && npx --yes pagefind --site out
|
|
|
|
# Runtime stage
|
|
FROM ghcr.io/hanzoai/spa:latest
|
|
COPY --from=build /src/app/site/out /public
|
|
ENV PORT=3000
|
|
ENV ROOT=/public
|
|
EXPOSE 3000
|