From b5bb868ea899931fe8baebe23ababd08ef029599 Mon Sep 17 00:00:00 2001 From: Codex Date: Sun, 24 May 2026 06:52:41 +0000 Subject: [PATCH] fix: bypass proxy for code queue rustup downloads --- src/components/microservices/code-queue/Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/microservices/code-queue/Dockerfile b/src/components/microservices/code-queue/Dockerfile index 31e2e3b3..7ac142c7 100644 --- a/src/components/microservices/code-queue/Dockerfile +++ b/src/components/microservices/code-queue/Dockerfile @@ -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/*)