Skip to content

Commit d3564c8

Browse files
committed
CARRY: Remove Golang image workaround
1 parent 73897ec commit d3564c8

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

build/images/training-operator/Dockerfile.rhoai

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
1-
ARG GOLANG_IMAGE=registry.access.redhat.com/ubi9/go-toolset:1.23
2-
# Go versioning workaround for lack of go-toolset for version 1.23
3-
FROM registry.access.redhat.com/ubi9/go-toolset:1.23 AS golang
4-
5-
FROM registry.access.redhat.com/ubi9/ubi:latest AS builder
6-
7-
ARG GOLANG_VERSION=1.23.0
8-
9-
# Install system dependencies
10-
RUN dnf upgrade -y && dnf install -y \
11-
gcc \
12-
make \
13-
openssl-devel \
14-
&& dnf clean all && rm -rf /var/cache/yum
15-
16-
# Install Go
17-
ENV PATH=/usr/local/go/bin:$PATH
18-
19-
ARG GOLANG_DIR=/usr/lib/golang
20-
COPY --from=golang ${GOLANG_DIR} /usr/local/go
1+
FROM registry.access.redhat.com/ubi9/go-toolset:1.23 AS builder
212

223
WORKDIR /workspace
234
# Copy the Go Modules manifests

0 commit comments

Comments
 (0)