Skip to content

Commit 4f3ee0f

Browse files
committed
Apply Go lang 1.23 workaround for Dockerfile.konflux
1 parent 6dff012 commit 4f3ee0f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

Dockerfile.konflux

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
11
# Build arguments
22
ARG SOURCE_CODE=.
33

4-
FROM registry.access.redhat.com/ubi8/go-toolset:1.22@sha256:cb6d0d225da06acffdaea76081e9396e104b2e3cfb670c9d99cc3352761953c2 AS builder
4+
# BEGIN -- workaround lack of go-toolset for golang 1.23
5+
ARG GOLANG_IMAGE=registry-proxy.engineering.redhat.com/rh-osbs/openshift-golang-builder@sha256:2d5976ded2a3abda6966949c4d545d0cdd88a4d6a15989af38ca5e30e430a619
6+
FROM ${GOLANG_IMAGE} AS golang
7+
8+
FROM registry.access.redhat.com/ubi8/ubi@sha256:fd3bf22d0593e2ed26a1c74ce161c52295711a67de677b5938c87704237e49b0 AS builder
9+
ARG GOLANG_VERSION=1.23.0
10+
11+
# Install system dependencies
12+
RUN dnf upgrade -y && dnf install -y \
13+
gcc \
14+
make \
15+
openssl-devel \
16+
git \
17+
&& dnf clean all && rm -rf /var/cache/yum
18+
19+
# Install Go
20+
ENV PATH=/usr/local/go/bin:$PATH
21+
22+
COPY --from=golang /usr/lib/golang /usr/local/go
23+
# End of Go versioning workaround
524

625
WORKDIR /workspace
726

0 commit comments

Comments
 (0)