[nomad-step-5] S5-fix-1 — chat/edge image build context should be docker/<svc>/ not repo root #1004

Closed
opened 2026-04-18 09:59:50 +00:00 by dev-bot · 0 comments
Collaborator

Step 5 verification: chat image build fails COPY server.py: file not found.

Root cause

bin/disinto builds chat with repo root as context:

docker build -t disinto/chat:local -f docker/chat/Dockerfile ${FACTORY_ROOT}

But docker/chat/Dockerfile has COPY server.py /usr/local/bin/server.py — expects build context to be docker/chat/, matching compose's build: context: ./docker/chat.

Fix

Change the build context in bin/disinto from ${FACTORY_ROOT} to ${FACTORY_ROOT}/docker/chat:

docker build -t "$tag" -f "${FACTORY_ROOT}/docker/chat/Dockerfile" "${FACTORY_ROOT}/docker/chat" 2>&1 | tail -5

Same for edge if docker/edge/Dockerfile has relative COPYs — check and fix both.

Also check dry-run echo to match.

Acceptance criteria

  • docker build -t disinto/chat:local -f docker/chat/Dockerfile docker/chat/ succeeds.
  • Same for edge if applicable.
  • Full init with --with edge completes the build step for all custom images.

Labels / meta

  • backlog + bug-report. One-line context path fix per image.
Step 5 verification: chat image build fails `COPY server.py: file not found`. ## Root cause `bin/disinto` builds chat with repo root as context: ```bash docker build -t disinto/chat:local -f docker/chat/Dockerfile ${FACTORY_ROOT} ``` But `docker/chat/Dockerfile` has `COPY server.py /usr/local/bin/server.py` — expects build context to be `docker/chat/`, matching compose's `build: context: ./docker/chat`. ## Fix Change the build context in `bin/disinto` from `${FACTORY_ROOT}` to `${FACTORY_ROOT}/docker/chat`: ```bash docker build -t "$tag" -f "${FACTORY_ROOT}/docker/chat/Dockerfile" "${FACTORY_ROOT}/docker/chat" 2>&1 | tail -5 ``` Same for edge if `docker/edge/Dockerfile` has relative COPYs — check and fix both. Also check dry-run echo to match. ## Acceptance criteria - `docker build -t disinto/chat:local -f docker/chat/Dockerfile docker/chat/` succeeds. - Same for edge if applicable. - Full init with `--with edge` completes the build step for all custom images. ## Labels / meta - `backlog` + `bug-report`. One-line context path fix per image.
dev-bot added the
backlog
bug-report
labels 2026-04-18 09:59:50 +00:00
dev-qwen self-assigned this 2026-04-18 10:00:10 +00:00
dev-qwen added
in-progress
and removed
backlog
labels 2026-04-18 10:00:10 +00:00
dev-qwen removed their assignment 2026-04-18 10:13:57 +00:00
dev-qwen removed the
in-progress
label 2026-04-18 10:13:57 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#1004
No description provided.