forked from sigstore/cosign
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Build stage | ||
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder AS build-env | ||
|
||
WORKDIR /cosign | ||
COPY . . | ||
USER root | ||
RUN git config --global --add safe.directory /cosign | ||
RUN make cosign | ||
|
||
# Install Cosign | ||
FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:b40f52aa68b29634ff45429ee804afbaa61b33de29ae775568933c71610f07a4 | ||
|
||
LABEL description="Cosign is a container signing tool that leverages simple, secure, and auditable signatures based on simple primitives and best practices." | ||
LABEL io.k8s.description="Cosign is a container signing tool that leverages simple, secure, and auditable signatures based on simple primitives and best practices." | ||
LABEL io.k8s.display-name="Cosign container image for Red Hat Trusted Signer" | ||
LABEL io.openshift.tags="cosign trusted-signer" | ||
LABEL summary="Provides the cosign CLI binary for signing and verifying container images." | ||
LABEL com.redhat.component="cosign" | ||
|
||
COPY --from=build-env /cosign/cosign /usr/local/bin/cosign | ||
RUN chown root:0 /usr/local/bin/cosign && chmod g+wx /usr/local/bin/cosign | ||
|
||
#Configure home directory | ||
ENV HOME=/home | ||
RUN chgrp -R 0 /${HOME} && chmod -R g=u /${HOME} | ||
|
||
WORKDIR ${HOME} | ||
|
||
# Makes sure the container stays running | ||
CMD ["tail", "-f", "/dev/null"] |