File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Build arguments
2
2
ARG SOURCE_CODE=.
3
3
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
5
24
6
25
WORKDIR /workspace
7
26
You can’t perform that action at this time.
0 commit comments