Skip to content

Dockerfile: update golang image to alpine 3.23#13921

Open
thaJeztah wants to merge 1 commit into
docker:mainfrom
thaJeztah:update_alpine
Open

Dockerfile: update golang image to alpine 3.23#13921
thaJeztah wants to merge 1 commit into
docker:mainfrom
thaJeztah:update_alpine

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

The alpine 3.22 variant was removed.

What I did

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

Copilot AI review requested due to automatic review settings July 7, 2026 23:59
@thaJeztah thaJeztah requested review from a team as code owners July 7, 2026 23:59
@thaJeztah thaJeztah requested review from glours and ndeloof July 7, 2026 23:59

Copilot AI 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.

Pull request overview

Updates the Dockerfile build base image to a supported Alpine variant after the alpine3.22 tag was removed, keeping the build pipeline functional.

Changes:

  • Switch the Go build stage base image from golang:${GO_VERSION}-alpine3.22 to golang:${GO_VERSION}-alpine3.23.

@docker-agent docker-agent 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.

Assessment: 🟢 APPROVE

Reviewed the single-line change updating the Go builder base image from golang:${GO_VERSION}-alpine3.22 to golang:${GO_VERSION}-alpine3.23.

No issues found. This is a clean, necessary version bump — Alpine 3.22 has been removed upstream, so switching to Alpine 3.23 is the correct fix. The change is minimal, well-scoped, and consistent with the project's recent history of keeping the builder image up to date.

@thaJeztah

Copy link
Copy Markdown
Member Author

Hm... more changes needed

1.107 GO111MODULE=on go build  -trimpath -tags "fsnotify,e2e" -ldflags "-w -X github.com/docker/compose/v5/internal.Version=61203c8" -o "/out/docker-compose" ./cmd
37.96 # runtime/cgo
37.96 clang: error: overriding deployment version from '10.16' to '11.0' [-Werror,-Woverriding-deployment-version]
39.77 make: *** [Makefile:61: build] Error 1

@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

The alpine 3.22 variant was removed.

Also updating the macOS SDK version to avoid errors when building
on alpine 3.23;

    1.107 GO111MODULE=on go build  -trimpath -tags "fsnotify,e2e" -ldflags "-w -X github.com/docker/compose/v5/internal.Version=61203c8" -o "/out/docker-compose" ./cmd
    37.96 # runtime/cgo
    37.96 clang: error: overriding deployment version from '10.16' to '11.0' [-Werror,-Woverriding-deployment-version]
    39.77 make: *** [Makefile:61: build] Error 1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Comment thread Dockerfile
ARG BUILD_TAGS
ARG BUILD_FLAGS
ARG TARGETPLATFORM
ARG MACOSX_VERSION_MIN=11.0

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This should probably do the trick

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.

3 participants