This commit is contained in:
parent
a246e1a73c
commit
82c0f7514f
@ -6,8 +6,12 @@ FROM node:16-bullseye
|
||||
RUN sed -i 's|http://deb.debian.org/debian|http://mirrors.aliyun.com/debian|g' /etc/apt/sources.list && \
|
||||
sed -i 's|http://deb.debian.org/debian-security|http://mirrors.aliyun.com/debian-security|g' /etc/apt/sources.list && \
|
||||
apt-get update && apt-get install -y openssl libssl-dev musl-tools
|
||||
RUN export RUSTUP_DIST_SERVER="https://rsproxy.cn" && export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup" && \
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh | sh -s -- -y
|
||||
|
||||
# 设置 RUSTUP_DIST_SERVER 和 RUSTUP_UPDATE_ROOT 环境变量
|
||||
ENV RUSTUP_DIST_SERVER=https://rsproxy.cn
|
||||
ENV RUSTUP_UPDATE_ROOT=https://rsproxy.cn/rustup
|
||||
# 安装 Rust 工具链
|
||||
RUN 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user