From cf465808d71f274949da8c9a847e2f772e9ca794 Mon Sep 17 00:00:00 2001 From: Wizerd Date: Thu, 4 Jan 2024 15:53:24 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E6=9B=B4=E6=96=B0dockerfile=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3255c4e..6b0d444 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,15 @@ ENV PYTHONUNBUFFERED=1 RUN chmod +x /app/start.sh -RUN apt update && apt install -y jq +RUN apt update && apt install -y \ + jq \ + zlib1g-dev \ + gcc \ + curl \ + && curl https://sh.rustup.rs -sSf | sh -s -- -y + +# 安装 Rust 编译器 +ENV PATH="/root/.cargo/bin:${PATH}" # 设置 pip 源为清华大学镜像 RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple