Commit d4fcd817 authored by xiezhi's avatar xiezhi

fix

parent ccb1bea4
# 使用官方 Rust 镜像作为构建环境
FROM hb.eazytec-cloud.com/eazytec/eazydevelop-rust:ubuntu22.04-rust1.89.0-latest as builder
# 设置 Rust 默认工具链
RUN rustup default stable
WORKDIR /app
# 复制 Cargo.toml
......@@ -22,6 +25,9 @@ RUN cargo build --release
# 生产环境
FROM hb.eazytec-cloud.com/eazytec/eazydevelop-rust:ubuntu22.04-rust1.89.0-latest
# 设置 Rust 默认工具链
RUN rustup default stable
WORKDIR /app
# 从构建阶段复制二进制文件
......
......@@ -8,6 +8,8 @@ LOG_FILE = $(abspath $(dir $(lastword $(MAKEFILE_LIST))))/.logs/app.log
# 安装命令
.PHONY: install
install:
@echo "设置 Rust 默认工具链..."
@rustup default stable || echo "警告:无法设置默认工具链,继续执行..."
@echo "检查 Rust 版本..."
@rustc --version
@echo "检查 Cargo 版本..."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment