Vectrum
Sign In

Fix the Docker build's dependency install

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>
JjohannSocommitted 1 parent b6bb51ecommit3945eac

Showing 1 changed file with 1 addition and 2 deletions.

+1−2DockerfileView File
@@ -1,5 +1,3 @@
1- # syntax=docker/dockerfile:1
2-
31 # ---- build: install dependencies (which also downloads PocketBase into bin/) and build Next.js
42 FROM node:24-bookworm-slim AS build
53 WORKDIR /app
@@ -8,6 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
86
97 COPY package.json bun.lock ./
108 COPY scripts ./scripts
9+ COPY patches ./patches
1110 RUN bun install --frozen-lockfile
1211
1312 COPY . .