From abad421ed2478fe946bdc7bc9606cebaeedb7b69 Mon Sep 17 00:00:00 2001 From: draco <136370233+0xDraco@users.noreply.github.com> Date: Wed, 22 Jul 2026 10:49:20 +0100 Subject: [PATCH] fix(web): vendor the callit-api build context so the docker image resolves its file dependency --- docker-compose.yml | 5 ++++- web/Dockerfile | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8b9e1d8..f78ff78 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -93,7 +93,10 @@ services: restart: unless-stopped web: - build: ./web + build: + context: ./web + additional_contexts: + callit-api: ./packages-js/callit-api # SSR + static server. Talks to the backend/keeper over their public URLs # (baked into the bundle at build time from web/.env.production), so it # needs no compose-network links. Point trycallit.xyz at this service. diff --git a/web/Dockerfile b/web/Dockerfile index a6208c2..254691f 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -1,9 +1,12 @@ FROM node:24-bookworm-slim -WORKDIR /app +WORKDIR /app/web RUN npm install -g bun@1.2.10 +# @callit/api is a file: dependency one level above the web package, so it must +# be present before the frozen install resolves the lockfile. +COPY --from=callit-api . /app/packages-js/callit-api COPY package.json bun.lock ./ RUN bun install --frozen-lockfile