bun install --frozen-lockfile ran before patches/ was copied in, so it failed on the ssh2 patch listed under patchedDependencies. Copy patches/ with package.json and the lockfile. Drop the "# syntax=docker/dockerfile:1" directive too: the Dockerfile uses no BuildKit-only features, and the directive forces BuildKit on builders that would otherwise use the classic one (Openship's BuildKit path hangs while loading the build context). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Showing 1 changed file with 1 addition and 2 deletions.
| @@ -1,5 +1,3 @@ | ||
| 1 | - # syntax=docker/dockerfile:1 | |
| 2 | - | |
| 3 | 1 | # ---- build: install dependencies (which also downloads PocketBase into bin/) and build Next.js |
| 4 | 2 | FROM node:24-bookworm-slim AS build |
| 5 | 3 | WORKDIR /app |
| @@ -8,6 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates | ||
| 8 | 6 | |
| 9 | 7 | COPY package.json bun.lock ./ |
| 10 | 8 | COPY scripts ./scripts |
| 9 | + COPY patches ./patches | |
| 11 | 10 | RUN bun install --frozen-lockfile |
| 12 | 11 | |
| 13 | 12 | COPY . . |