Merge pull request #178 from pikasTech/fix/code-queue-rustup-proxy-bypass

修复 Code Queue rustup 下载代理
This commit is contained in:
Lyon
2026-05-24 14:54:00 +08:00
committed by GitHub
@@ -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/*)