Skip to content

Commit

Permalink
Merge pull request #222 from dusdjhyeon/ubi-migration
Browse files Browse the repository at this point in the history
UBI migration of Images - chaos-runner
  • Loading branch information
Jonsy13 authored Aug 6, 2024
2 parents 6437228 + 7272457 commit 7c8ef36
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ RUN go env
RUN CGO_ENABLED=0 go build -buildvcs=false -o /output/chaos-runner -v ./bin

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

LABEL maintainer="LitmusChaos"

ENV RUNNER=/usr/local/bin/chaos-runner

COPY --from=builder /output/chaos-runner ${RUNNER}
RUN chown 65534:0 ${RUNNER} && chmod 755 ${RUNNER}

USER 65534

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

0 comments on commit 7c8ef36

Please sign in to comment.