Skip to content

Conversation

@ILikeIneine
Copy link
Collaborator

Purpose

The image size are too large for now. This PR reduce the image size from ~30g to ~23g

@ILikeIneine ILikeIneine self-assigned this Dec 2, 2025
@ILikeIneine
Copy link
Collaborator Author

cc: @dtrifiro

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the Dockerfile to use a multi-stage build, which is a great step towards reducing the final image size. The changes are well-structured. However, I've found a few critical issues that undermine the size reduction effort and introduce maintenance problems. My main concerns are:

  • The final image incorrectly copies the entire /usr directory from a build stage, including many unnecessary build tools and bloating the image.
  • There are hardcoded versions in rpm and ARG commands, which will cause issues when versions are updated.
    I've provided detailed comments and suggestions to address these points. Fixing them should further reduce the image size significantly and improve the Dockerfile's maintainability.

Signed-off-by: Hank <[email protected]>
--extra-index-url ${UV_EXTRA_INDEX_URL} \
. -v && \
vllm_metax_init
uv build --wheel --out-dir=/workspace/vllm_metax_wheel_dist
Copy link

@chr15p chr15p Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this commands fails because torch==2.6.0+metax3.2.1.3 is not available, does it need a --index=https://repos.metax-tech.com/r/maca-pypi/simple ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's weird I didnt got the problem in my local environment. I've alreay set the UV_EXTRA_INDEX_URL to the index so it should not happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants