Skip to content

Commit 0b10874

Browse files
authored
Merge pull request #499 from dusdjhyeon/ubi-migration
UBI migration of Images - chaos-operator
2 parents bb7ea39 + 77a6191 commit 0b10874

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ RUN go env
1717
RUN CGO_ENABLED=0 go build -buildvcs=false -o /output/chaos-operator -v ./main.go
1818

1919
# Packaging stage
20-
# Image source: https://github.com/litmuschaos/test-tools/blob/master/custom/hardened-alpine/infra/Dockerfile
21-
# The base image is non-root (have litmus user) with default litmus directory.
22-
FROM litmuschaos/infra-alpine
20+
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4
2321

2422
LABEL maintainer="LitmusChaos"
2523

2624
ENV OPERATOR=/usr/local/bin/chaos-operator
25+
2726
COPY --from=builder /output/chaos-operator ${OPERATOR}
27+
RUN chown 65534:0 ${OPERATOR} && chmod 755 ${OPERATOR}
28+
29+
USER 65534
2830

2931
ENTRYPOINT ["/usr/local/bin/chaos-operator"]

0 commit comments

Comments
 (0)