fix: Docker build — install all workspace deps, not filtered

- API Dockerfile: install all workspace packages with Scope: all 11 workspace projects
Already up to date
Done in 596ms using pnpm v11.15.1 (without filter) so prisma CLI is available
- Web Dockerfile: same fix for consistency
- Copy full apps/ directory during deps stage
This commit is contained in:
YetAnotherSuite Dev 2026-07-20 23:20:52 +02:00
parent 436f6dda6c
commit 0b174e38f5
2 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,8 @@ WORKDIR /app
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./
COPY tooling/ ./tooling/
COPY packages/ ./packages/
COPY apps/api/ ./apps/api/
RUN pnpm install --frozen-lockfile --filter @yetanother/api
COPY apps/ ./apps/
RUN pnpm install --frozen-lockfile
FROM deps AS builder
WORKDIR /app

View File

@ -6,8 +6,8 @@ WORKDIR /app
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./
COPY tooling/ ./tooling/
COPY packages/ ./packages/
COPY apps/web/ ./apps/web/
RUN pnpm install --frozen-lockfile --filter @yetanother/web
COPY apps/ ./apps/
RUN pnpm install --frozen-lockfile
FROM deps AS builder
WORKDIR /app