Skip to content

cherrypick #62666#62717

Merged
aslonnie merged 1 commit intoray-project:releases/2.55.1from
anyscale:lonnie-260417-2551cp1
Apr 17, 2026
Merged

cherrypick #62666#62717
aslonnie merged 1 commit intoray-project:releases/2.55.1from
anyscale:lonnie-260417-2551cp1

Conversation

@aslonnie
Copy link
Copy Markdown
Collaborator

add apt-get update for slim base

add apt-get update for slim base

Signed-off-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
@aslonnie aslonnie merged commit 9c12c02 into ray-project:releases/2.55.1 Apr 17, 2026
2 of 4 checks passed
Copy link
Copy Markdown
Contributor

@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 modifies the docker/base-slim/Dockerfile to include apt-get upgrade -y and sets the DEBIAN_FRONTEND environment variable to noninteractive. The review feedback highlights that using apt-get upgrade in Dockerfiles is discouraged because it leads to non-deterministic builds and increased image size. Additionally, the feedback points out a missing DEBIAN_FRONTEND export in one section, which could cause the build to hang during interactive package configurations.

)

apt-get update
apt-get upgrade -y
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The pull request description mentions adding apt-get update, but that command is already present on line 40. This change adds apt-get upgrade, which is generally discouraged in Dockerfiles. It makes builds non-deterministic because the image content will vary depending on when the build is run and what updates are available in the package repositories at that time. It also increases image size.

Additionally, unlike the change at line 148, this section is missing export DEBIAN_FRONTEND=noninteractive. Without it, apt-get upgrade or apt-get install might hang if a package requires interactive configuration.

export DEBIAN_FRONTEND=noninteractive

apt-get update -y
apt-get upgrade -y
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

As noted previously, apt-get upgrade is discouraged in Dockerfiles to ensure build reproducibility and minimize image bloat. It is recommended to use updated base images or targeted package updates instead of a full upgrade.

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.

1 participant