使用rsproxy镜像
build / build-rust (push) Failing after 2m26s
Details
build / build-rust (push) Failing after 2m26s
Details
This commit is contained in:
parent
d8cc4dc51c
commit
0b7215d8b3
|
@ -2,7 +2,8 @@
|
|||
# 用于构建 Rust 项目的镜像
|
||||
FROM node:16-bullseye
|
||||
|
||||
RUN apt-get update && apt-get install -y openssl libssl-dev musl-tools && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
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
|
||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
RUN rustup target add x86_64-unknown-linux-musl
|
||||
|
||||
|
|
Loading…
Reference in New Issue