使用rsproxy镜像
Some checks failed
build / build-rust (push) Has been cancelled

This commit is contained in:
soul-walker 2024-09-23 16:05:18 +08:00
parent 0b7215d8b3
commit a917453834

View File

@ -3,7 +3,7 @@
FROM node:16-bullseye
RUN export RUSTUP_DIST_SERVER="https://rsproxy.cn" && export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"
RUN apt-get update && apt-get install -y openssl libssl-dev musl-tools && curl --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh | sh
RUN apt-get update && apt-get install -y openssl libssl-dev musl-tools && curl --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN rustup target add x86_64-unknown-linux-musl