Skip to content

Dockerfile uses outdated Go 1.19 image and no standalone docker build target #288

Description

@xavier-re

Issue

The Dockerfile uses golang:1.19 as the builder image, which is end-of-life and carries known CVEs. There is also no way to build the Docker image directly from the repo — make docker-snapshot goes through goreleaser which creates a limited build context, making it unsuitable for in-container compilation workflows.

Additionally, kubeclient.go silently ignores the error from ClientConfig(), which can lead to a nil-pointer panic on the next line.

Proposed fix

  • Bump builder image to golang:1.23
  • Add a docker-build Makefile target (docker build from repo root)
  • Update deprecated goreleaser --rm-dist to --clean
  • Add missing error check in kubeclient.go
  • Update README Docker instructions accordingly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions