Skip to content

fix(docker): agent image builds again from main - #61

Merged
hamchowderr merged 2 commits into
mainfrom
fix/foreman-tqq3-docker-native-build
Oct 25, 2026
Merged

hamchowderr merged 2 commits into
mainfrom
fix/foreman-tqq3-docker-native-build

Conversation

@hamchowderr

Copy link
Copy Markdown
Owner

Why

main can't deploy: the agent image build fails at npm install.

  • zlib-sync (Discord adapter) compiles with node-gyp, and node:24-slim has no Python or compiler.
  • Once that compiles, the root postinstall fails because scripts/check-dep-uniqueness.mjs isn't copied into the builder.

Change (Dockerfile.agents)

  • Builder stage installs python3 make g++. The production stage copies the compiled node_modules, so the runtime image gets no toolchain.
  • Builder copies scripts/check-dep-uniqueness.mjs, so the single-version check runs in the image build too.

Checked

  • Image built from this branch on the VPS: exit 0.
  • python3 is absent from the runtime image.
  • After merge: Coolify deploy of main finishes and the container is healthy.

Beads: foreman-tqq3

🤖 Generated with Claude Code

hamchowderr and others added 2 commits October 25, 2026 08:43
zlib-sync, added with the Discord adapter, compiles with node-gyp
during npm install. node:24-slim has no Python or compiler, so the
agent image build failed and main could not deploy. The tools go in
the builder stage only; production copies the compiled modules.

Closes: foreman-tqq3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The root postinstall runs scripts/check-dep-uniqueness.mjs, which the
builder stage never copied, so npm install failed once zlib-sync
compiled. Copying it also keeps the single-version check in the image
build.

Refs: foreman-tqq3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
foreman Ready Ready Preview Oct 25, 2026 4:33pm UTC

Request Review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-25T16:33:05.232875Z
We couldn’t complete this review. Comment @codex review to try again.
1aa9a1b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@hamchowderr
hamchowderr merged commit 44b0b4b into main Oct 25, 2026
7 of 8 checks passed
@hamchowderr
hamchowderr deleted the fix/foreman-tqq3-docker-native-build branch October 25, 2026 16:35

This branch was successfully deployed

1 active deployment
Preview — 1aa9a1bf Deployed Oct 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant