Skip to content

Commit 103580c

Browse files
use publicly available images
1 parent 3d3fde0 commit 103580c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Build the manager binary
2-
FROM registry-proxy.engineering.redhat.com/rh-osbs/openshift-golang-builder:v1.23@sha256:ca0c771ecd4f606986253f747e2773fe2960a6b5e8e7a52f6a4797b173ac7f56 AS golang
32

4-
FROM registry.redhat.io/ubi8/ubi@sha256:fd3bf22d0593e2ed26a1c74ce161c52295711a67de677b5938c87704237e49b0 AS builder
3+
# BEGIN -- workaround lack of go-toolset for golang 1.23
4+
ARG GOLANG_IMAGE=golang:1.21
5+
FROM ${GOLANG_IMAGE} AS golang
6+
7+
FROM registry.access.redhat.com/ubi8/ubi@sha256:fd3bf22d0593e2ed26a1c74ce161c52295711a67de677b5938c87704237e49b0 AS builder
58
ARG GOLANG_VERSION=1.23.0
69

710
# Install system dependencies
@@ -15,7 +18,7 @@ RUN dnf upgrade -y && dnf install -y \
1518
# Install Go
1619
ENV PATH=/usr/local/go/bin:$PATH
1720

18-
COPY --from=golang /usr/lib/golang /usr/local/go
21+
COPY --from=golang /usr/local/go /usr/local/go
1922
# End of Go versioning workaround
2023

2124
WORKDIR /workspace

0 commit comments

Comments
 (0)