Skip to content

Commit

Permalink
Merge pull request #42 from JasonPowr/rm-curl-from-containerfile
Browse files Browse the repository at this point in the history
rm-curl-from-containerfile
  • Loading branch information
JasonPowr authored Feb 28, 2024
2 parents 416034f + cbdb1ad commit 3c26054
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Containerfile.segment-backup-job.rh
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
FROM registry.access.redhat.com/ubi9/toolbox@sha256:7391628396216c011ed3a310f1fa54c6a9221e36f7fa59c94ae7796de51e7a25 AS builder
FROM registry.redhat.io/openshift4/ose-tools-rhel8@sha256:486b4d2dd0d10c5ef0212714c94334e04fe8a3d36cf619881986201a50f123c7 AS cli-tools
FROM registry.redhat.io/ubi9/python-311@sha256:9101b9924d06a4944649e9cb008496813479d66271ee1f2a1b6ddfc91228c97c

WORKDIR /tmp

RUN curl -sL https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 -o /tmp/jq && chmod 755 /tmp/jq && \
curl -sL https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/stable/openshift-client-linux.tar.gz -o /tmp/openshift-client-linux.tar.gz && \
tar xvf /tmp/openshift-client-linux.tar.gz

FROM registry.access.redhat.com/ubi9/python-311@sha256:9101b9924d06a4944649e9cb008496813479d66271ee1f2a1b6ddfc91228c97c
LABEL description="This image provides a data collection service for segment"
LABEL io.k8s.description="This image provides a data collection service for segment"
LABEL io.k8s.display-name="segment collection"
Expand All @@ -20,8 +14,8 @@ USER 0
WORKDIR /opt/app-root/src/

COPY . .
COPY --from=builder /tmp/oc /usr/local/bin/oc
COPY --from=builder /tmp/jq /usr/local/bin/jq
COPY --from=cli-tools /usr/bin/oc /usr/local/bin/oc
COPY --from=cli-tools /usr/bin/jq /usr/local/bin/jq

RUN pip install -U pip && pip install -r /opt/app-root/src/requirements.txt --force-reinstall

Expand Down

0 comments on commit 3c26054

Please sign in to comment.