Skip to content

Commit

Permalink
Add shadow-utils and entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodbindal authored and vdemeester committed Oct 10, 2024
1 parent e867424 commit be9f70f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions openshift/dockerfiles/cache.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ FROM $RUNTIME
ARG VERSION=tekton-caches-main

COPY --from=builder /tmp/cache /ko-app/cache


LABEL \
com.redhat.component="openshift-pipelines-tekton-caches" \
name="openshift-pipelines/pipelines-tekton-caches-rhel8" \
Expand All @@ -23,3 +25,8 @@ LABEL \
io.k8s.description="Red Hat OpenShift Pipelines Tekton Caches" \
io.openshift.tags="pipelines,tekton,openshift,tekton-caches"

RUN microdnf install -y shadow-utils
RUN groupadd -r -g 65532 nonroot && useradd --no-log-init -r -u 65532 -g nonroot nonroot
USER 65532

ENTRYPOINT ["/ko-app/cache"]

0 comments on commit be9f70f

Please sign in to comment.