Skip to content

Commit 7c8ef36

Browse files
authored
Merge pull request #222 from dusdjhyeon/ubi-migration
UBI migration of Images - chaos-runner
2 parents 6437228 + 7272457 commit 7c8ef36

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build/Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ RUN go env
1717
RUN CGO_ENABLED=0 go build -buildvcs=false -o /output/chaos-runner -v ./bin
1818

1919
# Packaging stage
20-
# Image source: https://github.com/litmuschaos/test-tools/blob/master/custom/hardend-alpine/control-plane/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 RUNNER=/usr/local/bin/chaos-runner
2725

2826
COPY --from=builder /output/chaos-runner ${RUNNER}
27+
RUN chown 65534:0 ${RUNNER} && chmod 755 ${RUNNER}
28+
29+
USER 65534
2930

3031
ENTRYPOINT ["/usr/local/bin/chaos-runner"]

0 commit comments

Comments
 (0)