Skip to content

Replace alpine:3.15 with distroless static#912

Open
thearyanahmed wants to merge 1 commit into
masterfrom
update-alpine
Open

Replace alpine:3.15 with distroless static#912
thearyanahmed wants to merge 1 commit into
masterfrom
update-alpine

Conversation

@thearyanahmed

@thearyanahmed thearyanahmed commented Apr 20, 2026

Copy link
Copy Markdown

This PR Replaces alpine:3.15 with gcr.io/distroless/static-debian12:nonroot for both images.

Also removes package installation (apk add ca-certificates) and simplify the image contents to just the compiled binaries.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR hardens the container images for the DigitalOcean cloud-controller-manager and its admission server by switching from an Alpine-based runtime image to a distroless static (nonroot) runtime image.

Changes:

  • Replace alpine:3.15 with gcr.io/distroless/static-debian12:nonroot for both images.
  • Remove package installation (apk add ca-certificates) and simplify the image contents to just the compiled binaries.
  • Use ENTRYPOINT to run the binaries by default.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
cloud-controller-manager/cmd/digitalocean-cloud-controller-manager/Dockerfile Switch runtime base image to distroless static nonroot; copy binary and set entrypoint.
cloud-controller-manager/cmd/digitalocean-cloud-controller-manager-admission-server/Dockerfile Same distroless static nonroot migration for the admission server image.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@thearyanahmed thearyanahmed marked this pull request as ready for review April 23, 2026 16:17

@m3co-code m3co-code left a comment

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.

LGTM but I think we should verify this works as expected before merging.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants