Skip to content

Commit 244a0ca

Browse files
committed
moving away from docker.io for base image due to rate limiting
Signed-off-by: Adam D. Cornett <adc@redhat.com>
1 parent 9e82db9 commit 244a0ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ ARG release_tag=0.0.0
33
ARG ARCH=amd64
44
ARG OS=linux
55

6-
FROM docker.io/golang:1.24 AS builder
6+
FROM registry.access.redhat.com/ubi10/go-toolset:1.24 AS builder
77
ARG quay_expiration
88
ARG release_tag
99
ARG ARCH
1010
ARG OS
1111

12+
# Switching to root user, since default users is 1001,
13+
# which prohibits copying from `/tmp` during make build cmd
14+
USER root
15+
1216
# Build the preflight binary
1317
COPY . /go/src/preflight
1418
WORKDIR /go/src/preflight

0 commit comments

Comments
 (0)