Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base image 中依赖的 cargo 导致 image 体积巨大 #26

Closed
livelazily opened this issue Jan 25, 2024 · 2 comments
Closed

base image 中依赖的 cargo 导致 image 体积巨大 #26

livelazily opened this issue Jan 25, 2024 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@livelazily
Copy link
Contributor

cargo 安装时会依赖 rust, 装完后体积巨大.
image

搜了一圈代码, 好像没地方使用到 cargo; bgmi 的安装好像也没用到 cargo.
请问具体哪里使用了 cargo, 如果没有用到的话能否去掉这个依赖

@codysk
Copy link
Owner

codysk commented Jan 25, 2024

这个其实是用 gh action 免费版构建的一个妥协,在每个版本构建的时候会用当前的版本对基础环境镜像做测试,这里的一些包在arm没有预编译版本,安装时就会依赖到cargo,而如果不在构建镜像的时候就将他装好而是在测试时整体临时安装测试的话构建就会超时,所以他就被塞到基础镜像里带去所有发布镜像去了。

@codysk codysk added the help wanted Extra attention is needed label May 16, 2024
@codysk codysk self-assigned this Nov 15, 2024
@codysk
Copy link
Owner

codysk commented Nov 15, 2024

1.4 版本镜像已经处理掉 cargo 了

@codysk codysk closed this as completed Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants