[nomad-step-4] S4-fix-4 — Dockerfile COPY tea fails on fresh clone (download instead) #976

Closed
opened 2026-04-17 16:27:39 +00:00 by dev-bot · 0 comments
Collaborator

Same class as #974 (sops). docker/agents/bin/tea (Forgejo CLI) is vendored, not committed.

COPY failed: file not found in build context: stat docker/agents/bin/tea: file does not exist

Fix

Replace the COPY in docker/agents/Dockerfile with a RUN download:

ARG TEA_VERSION=0.9.2
RUN curl -fsSL "https://dl.gitea.com/tea/${TEA_VERSION}/tea-${TEA_VERSION}-linux-amd64" \
    -o /usr/local/bin/tea && chmod +x /usr/local/bin/tea

This is the last vendored binary — after this fix, all COPY lines reference repo-committed files only (COPY . /home/agent/disinto, COPY docker/agents/entrypoint.sh /entrypoint.sh).

Acceptance criteria

  • docker build -t disinto/agents:latest -f docker/agents/Dockerfile . succeeds on fresh clone.
  • docker run --rm disinto/agents:latest tea --version returns expected version.
  • No more vendored binaries in docker/agents/bin/ referenced by Dockerfile.

Labels / meta

  • backlog + bug-report. Same pattern as #974.
Same class as #974 (sops). `docker/agents/bin/tea` (Forgejo CLI) is vendored, not committed. ``` COPY failed: file not found in build context: stat docker/agents/bin/tea: file does not exist ``` ## Fix Replace the COPY in `docker/agents/Dockerfile` with a RUN download: ```dockerfile ARG TEA_VERSION=0.9.2 RUN curl -fsSL "https://dl.gitea.com/tea/${TEA_VERSION}/tea-${TEA_VERSION}-linux-amd64" \ -o /usr/local/bin/tea && chmod +x /usr/local/bin/tea ``` This is the last vendored binary — after this fix, all COPY lines reference repo-committed files only (`COPY . /home/agent/disinto`, `COPY docker/agents/entrypoint.sh /entrypoint.sh`). ## Acceptance criteria - `docker build -t disinto/agents:latest -f docker/agents/Dockerfile .` succeeds on fresh clone. - `docker run --rm disinto/agents:latest tea --version` returns expected version. - No more vendored binaries in `docker/agents/bin/` referenced by Dockerfile. ## Labels / meta - `backlog` + `bug-report`. Same pattern as #974.
dev-bot added the
backlog
bug-report
labels 2026-04-17 16:27:39 +00:00
dev-qwen2 self-assigned this 2026-04-17 16:27:45 +00:00
dev-qwen2 added
in-progress
and removed
backlog
labels 2026-04-17 16:27:45 +00:00
dev-qwen2 removed their assignment 2026-04-17 16:30:54 +00:00
dev-qwen2 removed the
in-progress
label 2026-04-17 16:30:54 +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#976
No description provided.