From dcfdcfb686c3a05b636a6268817c259aad8a2895 Mon Sep 17 00:00:00 2001 From: Kevin Hannon Date: Tue, 10 Dec 2024 07:40:29 -0500 Subject: [PATCH] update golang to 1.23 and fix docker warnings --- Dockerfile | 8 ++++---- go.mod | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 10c68f79..4ed9999a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -ARG BASE_IMAGE -ARG BUILDER_IMAGE +ARG BUILDER_IMAGE=golang:1.23 +ARG BASE_IMAGE=gcr.io/distroless/static:nonroot +ARG CGO_ENABLED=0 # Build the manager binary -FROM ${BUILDER_IMAGE} as builder +FROM ${BUILDER_IMAGE} AS builder ARG TARGETOS ARG TARGETARCH -ARG CGO_ENABLED WORKDIR /workspace # Copy the Go Modules manifests diff --git a/go.mod b/go.mod index 86614fdd..602e65dd 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module sigs.k8s.io/lws -go 1.22.0 +go 1.23.0 require ( github.com/google/go-cmp v0.6.0