Skip to content

Update Go base image to version 1.25-alpine - #1008

Open
kp625544 wants to merge 1 commit into
projectdiscovery:devfrom
kp625544:dev
Open

Update Go base image to version 1.25-alpine#1008
kp625544 wants to merge 1 commit into
projectdiscovery:devfrom
kp625544:dev

Conversation

@kp625544

@kp625544 kp625544 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

1.24 gives the following error:

=> ERROR [builder 5/6] RUN go mod download 0.6s

[builder 5/6] RUN go mod download:
0.428 go: go.mod requires go >= 1.25.0 (running go 1.24.13; GOTOOLCHAIN=local) ------
Dockerfile:7


5 | WORKDIR /app
6 | COPY . /app
7 | >>> RUN go mod download
8 | RUN go build ./cmd/dnsx
9 |

ERROR: failed to build: failed to solve: process "/bin/sh -c go mod download" did not complete successfully: exit code: 1

Summary by CodeRabbit

  • Chores
    • Updated the build environment to use Go 1.25, improving compatibility with the latest Go toolchain.

1.24 gives the following error:

 => ERROR [builder 5/6] RUN go mod download                                                                                                                                            0.6s
------                                                                                                                                                                                      
 > [builder 5/6] RUN go mod download:
0.428 go: go.mod requires go >= 1.25.0 (running go 1.24.13; GOTOOLCHAIN=local)
------
Dockerfile:7
--------------------
   5 |     WORKDIR /app
   6 |     COPY . /app
   7 | >>> RUN go mod download
   8 |     RUN go build ./cmd/dnsx
   9 |     
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c go mod download" did not complete successfully: exit code: 1
@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4e1d5537-06c0-47a2-8fe1-e49e2752f9a0

📥 Commits

Reviewing files that changed from the base of the PR and between baa4798 and d39b168.

📒 Files selected for processing (1)
  • Dockerfile

Walkthrough

Changes

Docker Builder Image

Layer / File(s) Summary
Upgrade Go builder image
Dockerfile
The builder stage now uses golang:1.25-alpine instead of golang:1.24-alpine.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Poem

A rabbit hops past the Dockerfile line,
Go 1.25 makes the build align.
Alpine guides the builder’s way,
One small change for a brighter day.
“Hop, compile, and ship!” I say.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: upgrading the Go Docker base image to version 1.25-alpine.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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