From 2c76da270bb9cebeedc6e02b72463e6da0d75e5f Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 6 Aug 2026 10:34:38 +0100 Subject: [PATCH] Coach: put coach/ in the api image, which never had it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit server.js has imported ./coach/config.js since 1/6, and the Dockerfile copies only server.js. The published api image therefore cannot start: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/coach/config.js' imported from /app/server.js Reproduced by building `api/` at 9082ac5 and running it; /app/coach does not exist in the image at all. With this line the same build boots and answers /api/config. Mine, from 1/6 — the line existed while I was working and was lost when I staged that PR's files by name. Nothing caught it because the api has no image job: the test job runs node:test against the source tree, where coach/ is obviously present. 3/6 adds the api-image job whose whole purpose is that the image is proven to run rather than merely to build, and rewrites this Dockerfile into the multi-stage form the optional runtime needs. This is the one-line fix on its own, because the branch tip currently ships a container that exits on boot. Co-Authored-By: Claude Opus 5 --- api/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/api/Dockerfile b/api/Dockerfile index ee69c8a..308471c 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -3,6 +3,7 @@ WORKDIR /app COPY package.json package-lock.json* ./ RUN npm install --omit=dev && npm cache clean --force COPY server.js ./ +COPY coach ./coach ENV NODE_ENV=production EXPOSE 3000 CMD ["node", "server.js"]