From 7a57a7390a7129f014c0f4fe31d90db810149553 Mon Sep 17 00:00:00 2001 From: m17hr1l Date: Mon, 25 May 2026 17:08:50 +0200 Subject: [PATCH] =?UTF-8?q?stage-29=20fix:=20inference=20service=20?= =?UTF-8?q?=E2=80=94=20wire=20build:=20directive=20in=20compose?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The inference service declared 'image: psyc-trainer' but no build: stanza, so 'docker compose build inference' was a silent no-op and 'compose up inference' tried to pull from a registry that doesn't exist (denied). Added build context pointing at Dockerfile.train so future production deploys can rebuild it via the compose lifecycle instead of needing a manual 'docker build' on the side. Co-Authored-By: Claude Opus 4.7 --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index b5a7d61..3721180 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -75,8 +75,13 @@ services: # The live fine-tuned model behind the Classifier bot. GPU-only — opt in with # `--profile gpu`. Uses the psyc-trainer image (built from Dockerfile.train). + # The build context is local so `docker compose --profile gpu build inference` + # actually builds it (without this, compose silently skips the build). inference: image: psyc-trainer + build: + context: . + dockerfile: Dockerfile.train command: ["/scripts/serve_model.py", "--adapter", "/data/adapters/psyc-v5/final", "--host", "0.0.0.0", "--port", "8771"] volumes: - ./data:/data