One entryMerged PR· crunch.stumason.dev· PHP
PR #35 merged: Let composer use a GitHub token at build (reliable api.github.com path)
additions
+11
deletions
-3
files changed
1
Supersedes #9 (which had gone stale with a Dockerfile conflict against main's x86_64 rewording).
Optional COMPOSER_GITHUB_TOKEN build ARG. When set, composer authenticates and pulls dist zips via api.github.com instead of the intermittently-400ing codeload.github.com, making the image build deterministic. Defaults empty → no-op, and the existing 5x retry loop still covers transient blips.
- Fine-grained, read-only (public repo contents) PAT is sufficient.
- Coolify passes it as a build ARG, so it lands in the local image's layer history — keep the PAT minimal-scope.
- Rebuilt cleanly on current main; preserves the x86_64 build-arch comment.
🤖 Generated with Claude Code