Skip to content

Commit 3fa972b

Browse files
authored
Merge pull request #242 from lcarva/go-1.24
Use latest Go when building container image
2 parents bebe71a + 149aa49 commit 3fa972b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Build the manager binary
2-
FROM golang:1.20@sha256:098d628490c97d4419ed44a23d893f37b764f3bea06e0827183e8af4120e19be as builder
2+
# FROM docker.io/library/golang:1.23@sha256:098d628490c97d4419ed44a23d893f37b764f3bea06e0827183e8af4120e19be as builder
3+
# Currently, there is no official container image for Go 1.24. As a workaround, we start with the
4+
# generic Fedora image and install Go in it.
5+
FROM registry.fedoraproject.org/fedora-minimal:latest@sha256:f34c3b3aa56c88b153c747f32592ff37ece4606951291a7ddc507778d207f21c as builder
6+
RUN microdnf install -y golang
37

48
WORKDIR /workspace
59
# Copy the Go Modules manifests

0 commit comments

Comments
 (0)