fix: add HOST=0.0.0.0 to Dockerfile for probot v14 Docker compatibility#948
Merged
decyjphr merged 1 commit intomain-enterprisefrom Mar 23, 2026
Merged
Conversation
Co-authored-by: decyjphr <57544838+decyjphr@users.noreply.github.com> Agent-Logs-Url: https://github.com/github/safe-settings/sessions/6a4f5799-ea1f-4900-a659-b492dbdf5cfc
Copilot created this pull request from a session on behalf of
decyjphr
March 23, 2026 12:40
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the container runtime configuration to restore Docker port-mapping compatibility after upgrading to Probot v14, which now binds its HTTP server to localhost by default.
Changes:
- Set
HOST=0.0.0.0in the Dockerfile so the Probot server binds to all interfaces inside the container.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the failing
Create pre-releaseworkflow (job 68178180188).Root Cause
Probot was upgraded from v13 to v14 (a breaking change). One of the breaking changes in probot v14 is:
When running inside Docker with
-p 3000:3000, the app must bind to0.0.0.0(all interfaces) for the port mapping to work. With probot v13, the server listened on0.0.0.0by default so Docker port mapping worked fine. With probot v14, the server only listens on127.0.0.1inside the container — making it unreachable from outside the container — which caused thecurl http://localhost:3000health check to fail withConnection refused.This is why
2.2.0-rc.2(using probot v13) worked but the currentmain-enterprisebranch (using probot v14) failed.Fix
Add
ENV HOST=0.0.0.0to theDockerfile. This sets theHOSTenvironment variable that probot v14 uses to determine the bind address, restoring the previous Docker-compatible behavior.