stage-29 fix: inference service — wire build: directive in compose
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 <noreply@anthropic.com>
This commit is contained in:
@@ -75,8 +75,13 @@ services:
|
|||||||
|
|
||||||
# The live fine-tuned model behind the Classifier bot. GPU-only — opt in with
|
# 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).
|
# `--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:
|
inference:
|
||||||
image: psyc-trainer
|
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"]
|
command: ["/scripts/serve_model.py", "--adapter", "/data/adapters/psyc-v5/final", "--host", "0.0.0.0", "--port", "8771"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
|
|||||||
Reference in New Issue
Block a user