Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions services/agents-login/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ RUN npm install -g \
@openai/codex@${CODEX_VERSION} \
&& npm cache clean --force

# Prefer IPv4: the cluster has no working IPv6 egress, but external hosts (e.g.
# auth.openai.com) publish AAAA records. glibc getaddrinfo (used by codex's Rust
# HTTP client) otherwise returns IPv6 first and codex fails with ENETUNREACH /
# "error sending request". Ranking IPv4-mapped addresses first makes codex use IPv4.
RUN printf 'precedence ::ffff:0:0/96 100\n' > /etc/gai.conf

ENV NODE_ENV=production \
HOME=/home/agent \
CODEX_HOME=/home/agent/.codex
Expand Down