mirror of
https://github.com/zoo-apps/industries.git
synced 2026-10-30 14:57:03 +00:00
pnpm 11 reads allowBuilds from pnpm-workspace.yaml. Without it the build fails with ERR_PNPM_IGNORED_BUILDS on [email protected].5 (used by next/image).
13 lines
378 B
Docker
13 lines
378 B
Docker
# Multi-stage: build Next.js static export, then ship on hanzoai/spa.
|
|
# See https://github.com/hanzoai/spa/blob/main/RECIPE.md
|
|
FROM node:22-alpine AS build
|
|
WORKDIR /app
|
|
RUN corepack enable
|
|
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
|
|
RUN pnpm install --frozen-lockfile
|
|
COPY . .
|
|
RUN pnpm build
|
|
|
|
FROM ghcr.io/hanzoai/spa:1.2.0
|
|
COPY --from=build /app/out /public
|