File tree 3 files changed +6
-9
lines changed
3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ COPY ./pkg/ ./pkg/
12
12
RUN go build -o bin/agent ./agent/cmd/agent/main.go
13
13
14
14
# Stage 2: Copy the binaries from the image builder to the base image
15
- FROM registry.access.redhat.com/ubi8 /ubi-minimal:latest
15
+ FROM registry.access.redhat.com/ubi9 /ubi-minimal:latest
16
16
ENV USER_UID=1001
17
17
ENV USER_NAME=agent
18
18
@@ -22,8 +22,7 @@ COPY --from=builder /workspace/bin/agent /usr/local/bin/agent
22
22
COPY ./agent/scripts/user_setup /usr/local/scripts/user_setup
23
23
RUN /usr/local/scripts/user_setup
24
24
25
- RUN microdnf update && \
26
- microdnf clean all
25
+ RUN microdnf update -y && microdnf clean all
27
26
28
27
USER ${USER_UID}
29
28
ENTRYPOINT ["/usr/local/bin/agent" ]
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ COPY ./pkg/ ./pkg/
12
12
RUN go build -o bin/manager ./manager/cmd/manager/main.go
13
13
14
14
# Stage 2: Copy the binaries from the image builder to the base image
15
- FROM registry.access.redhat.com/ubi8 /ubi-minimal:latest
15
+ FROM registry.access.redhat.com/ubi9 /ubi-minimal:latest
16
16
ENV USER_UID=1001
17
17
ENV USER_NAME=manager
18
18
@@ -22,8 +22,7 @@ COPY --from=builder /workspace/bin/manager /usr/local/bin/manager
22
22
COPY ./manager/scripts/user_setup /usr/local/scripts/user_setup
23
23
RUN /usr/local/scripts/user_setup
24
24
25
- RUN microdnf update && \
26
- microdnf clean all
25
+ RUN microdnf update -y && microdnf clean all
27
26
28
27
USER ${USER_UID}
29
28
ENTRYPOINT ["/usr/local/bin/manager" ]
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ COPY ./pkg ./pkg
12
12
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o bin/multicluster-global-hub-operator operator/main.go
13
13
14
14
# Stage 2: Copy the binaries from the image builder to the base image
15
- FROM registry.access.redhat.com/ubi8 /ubi-minimal:latest
15
+ FROM registry.access.redhat.com/ubi9 /ubi-minimal:latest
16
16
17
17
ENV OPERATOR=/usr/local/bin/multicluster-global-hub-operator \
18
18
USER_UID=1001 \
@@ -21,8 +21,7 @@ ENV OPERATOR=/usr/local/bin/multicluster-global-hub-operator \
21
21
# install operator binary
22
22
COPY --from=builder /workspace/bin/multicluster-global-hub-operator ${OPERATOR}
23
23
24
- RUN microdnf update && \
25
- microdnf clean all
24
+ RUN microdnf update -y && microdnf clean all
26
25
27
26
USER ${USER_UID}
28
27
ENTRYPOINT ["/usr/local/bin/multicluster-global-hub-operator" ]
You can’t perform that action at this time.
0 commit comments