Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rust1.89.0-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazy-template
rust1.89.0-template
Commits
d4fcd817
Commit
d4fcd817
authored
Sep 16, 2025
by
xiezhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ccb1bea4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
Dockerfile
Dockerfile
+6
-0
Makefile
Makefile
+2
-0
No files found.
Dockerfile
View file @
d4fcd817
# 使用官方 Rust 镜像作为构建环境
# 使用官方 Rust 镜像作为构建环境
FROM
hb.eazytec-cloud.com/eazytec/eazydevelop-rust:ubuntu22.04-rust1.89.0-latest as builder
FROM
hb.eazytec-cloud.com/eazytec/eazydevelop-rust:ubuntu22.04-rust1.89.0-latest as builder
# 设置 Rust 默认工具链
RUN
rustup default stable
WORKDIR
/app
WORKDIR
/app
# 复制 Cargo.toml
# 复制 Cargo.toml
...
@@ -22,6 +25,9 @@ RUN cargo build --release
...
@@ -22,6 +25,9 @@ RUN cargo build --release
# 生产环境
# 生产环境
FROM
hb.eazytec-cloud.com/eazytec/eazydevelop-rust:ubuntu22.04-rust1.89.0-latest
FROM
hb.eazytec-cloud.com/eazytec/eazydevelop-rust:ubuntu22.04-rust1.89.0-latest
# 设置 Rust 默认工具链
RUN
rustup default stable
WORKDIR
/app
WORKDIR
/app
# 从构建阶段复制二进制文件
# 从构建阶段复制二进制文件
...
...
Makefile
View file @
d4fcd817
...
@@ -8,6 +8,8 @@ LOG_FILE = $(abspath $(dir $(lastword $(MAKEFILE_LIST))))/.logs/app.log
...
@@ -8,6 +8,8 @@ LOG_FILE = $(abspath $(dir $(lastword $(MAKEFILE_LIST))))/.logs/app.log
# 安装命令
# 安装命令
.PHONY
:
install
.PHONY
:
install
install
:
install
:
@
echo
"设置 Rust 默认工具链..."
@
rustup default stable
||
echo
"警告:无法设置默认工具链,继续执行..."
@
echo
"检查 Rust 版本..."
@
echo
"检查 Rust 版本..."
@
rustc
--version
@
rustc
--version
@
echo
"检查 Cargo 版本..."
@
echo
"检查 Cargo 版本..."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment