fix: bypass proxy for code queue rustup downloads

This commit is contained in:
Codex
2026-05-24 06:52:41 +00:00
parent e762b47069
commit b5bb868ea8
@@ -63,10 +63,7 @@ RUN command -v xauth >/dev/null 2>&1 \
RUN rustc --version | awk '{ split($2, v, "."); exit ! (v[1] > 1 || (v[1] == 1 && v[2] >= 86)) }' \
|| (apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl \
&& if ! command -v rustup >/dev/null 2>&1; then curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain stable; fi \
&& rustup default stable \
&& rustup component add rustfmt \
&& hash -r 2>/dev/null || true \
&& env -u HTTP_PROXY -u HTTPS_PROXY -u http_proxy -u https_proxy bash -lc 'set -e; if ! command -v rustup >/dev/null 2>&1; then curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain stable; fi; rustup default stable; rustup component add rustfmt; hash -r 2>/dev/null || true' \
&& rustc --version | awk '{ split($2, v, "."); exit ! (v[1] > 1 || (v[1] == 1 && v[2] >= 86)) }' \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*)