Skip to content

Commit a80be83

Browse files
dusdjhyeonandoriyaprashant
authored andcommitted
feat: migration base image
Signed-off-by: dusdjhyeon <[email protected]> Signed-off-by: andoriyaprashant <[email protected]>
1 parent 08d9ab8 commit a80be83

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build/Dockerfile

+5-3
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)