Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion telegraf-build/scripts/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the official Golang 1.21 image as the base image
FROM golang:1.21
FROM golang:1.25.3

Choose a reason for hiding this comment

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

critical

The specified Go version 1.25.3 does not appear to be a valid or existing version for the official golang Docker image. This will cause the Docker build to fail. The latest stable version of Go is 1.22.5 (as of July 2024). It is recommended to use a valid and recent stable version.

To improve build reproducibility and stability, it's also a good practice to use a more specific tag that includes the OS version, such as golang:1.22.5-bookworm.

FROM golang:1.22.5-bookworm


# Set the working directory inside the container
WORKDIR /app
Expand Down