Skip to content

Commit 1fda820

Browse files
sutaakaropenshift-merge-bot[bot]
authored andcommitted
Use Red Hat Go toolset image for CodeFlare operator image build
1 parent d6be0ab commit 1fda820

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

Dockerfile

+1-21
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,6 @@
11
# Build the manager binary
22

3-
# BEGIN -- workaround lack of go-toolset for golang 1.22
4-
5-
ARG GOLANG_IMAGE=docker.io/library/golang:1.22
6-
7-
ARG GOARCH=amd64
8-
9-
FROM ${GOLANG_IMAGE} AS golang
10-
FROM registry.access.redhat.com/ubi8/ubi:8.8 AS builder
11-
12-
# Install system dependencies
13-
RUN dnf upgrade -y && dnf install -y \
14-
gcc \
15-
make \
16-
openssl-devel \
17-
&& dnf clean all && rm -rf /var/cache/yum
18-
19-
# Install Go
20-
ENV PATH=/usr/local/go/bin:$PATH
21-
COPY --from=golang /usr/local/go /usr/local/go
22-
23-
# END -- workaround lack of go-toolset for golang 1.22
3+
FROM registry.access.redhat.com/ubi8/go-toolset:1.22@sha256:780ab5f3874a6e2b1e04bb3719e614e835af3f8ab150922d6e84c2f9fd2bdb27 AS builder
244

255
WORKDIR /workspace
266
# Copy the Go Modules manifests

0 commit comments

Comments
 (0)