ci/woodpecker/pr/ci Pipeline was canceled
install-hooks.mjs hard-failed (exit 1) in environments without a git binary — e.g. the docker image builds, which have no git and no repo. Hook installation is meaningless there; skip with a warning instead. docker/web.Dockerfile filtered @mosaic/web, but the package is named @mosaicstack/web, so the image build compiled nothing. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01ESFAnh2t9HmLwng8oW95St
23 lines
629 B
Docker
23 lines
629 B
Docker
FROM node:22-alpine AS base
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
RUN corepack enable
|
|
|
|
FROM base AS builder
|
|
WORKDIR /app
|
|
COPY pnpm-workspace.yaml pnpm-lock.yaml package.json ./
|
|
COPY apps/web/package.json ./apps/web/
|
|
COPY packages/ ./packages/
|
|
RUN pnpm install --frozen-lockfile
|
|
COPY . .
|
|
RUN pnpm --filter @mosaicstack/web build
|
|
|
|
FROM base AS runner
|
|
WORKDIR /app
|
|
ENV NODE_ENV=production
|
|
COPY --from=builder /app/apps/web/.next/standalone ./
|
|
COPY --from=builder /app/apps/web/.next/static ./apps/web/.next/static
|
|
COPY --from=builder /app/apps/web/public ./apps/web/public
|
|
EXPOSE 3000
|
|
CMD ["node", "apps/web/server.js"]
|