forked from sigstore/cosign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.client-server-cg.rh
40 lines (33 loc) · 2.85 KB
/
Dockerfile.client-server-cg.rh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Provides the Trusted Artifact Signer CLI binaries, cosign and gitsign
FROM quay.io/redhat-user-workloads/rhtas-tenant/cli/cosign@sha256:7445e6c2d2f732f15632940c08716f67edbd464b68009ce4ed412f017f21be4a AS cosign
FROM quay.io/redhat-user-workloads/rhtas-tenant/cli/gitsign@sha256:789694814477e4ad4ca389a32bf8bce54c188242326dafed656d12988f6a6dcd AS gitsign
FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:119ac25920c8bb50c8b5fd75dcbca369bf7d1f702b82f3d39663307890f0bf26
ENV APP_ROOT=/opt/app-root
WORKDIR $APP_ROOT/src/
RUN mkdir -p $APP_ROOT/src/clients/darwin && \
mkdir -p $APP_ROOT/src/clients/linux && \
mkdir -p $APP_ROOT/src/clients/windows
COPY --from=cosign /usr/local/bin/cosign-darwin-amd64.gz $APP_ROOT/src/clients/darwin/cosign-amd64.gz
COPY --from=cosign /usr/local/bin/cosign-darwin-arm64.gz $APP_ROOT/src/clients/darwin/cosign-arm64.gz
COPY --from=cosign /usr/local/bin/cosign-linux-amd64.gz $APP_ROOT/src/clients/linux/cosign-amd64.gz
COPY --from=cosign /usr/local/bin/cosign-linux-arm64.gz $APP_ROOT/src/clients/linux/cosign-arm64.gz
COPY --from=cosign /usr/local/bin/cosign-linux-ppc64le.gz $APP_ROOT/src/clients/linux/cosign-ppc64le.gz
COPY --from=cosign /usr/local/bin/cosign-linux-s390x.gz $APP_ROOT/src/clients/linux/cosign-s390x.gz
COPY --from=cosign /usr/local/bin/cosign-windows-amd64.gz $APP_ROOT/src/clients/windows/cosign-amd64.gz
COPY --from=gitsign /usr/local/bin/gitsign_cli_darwin_amd64.gz $APP_ROOT/src/clients/darwin/gitsign-amd64.gz
COPY --from=gitsign /usr/local/bin/gitsign_cli_darwin_arm64.gz $APP_ROOT/src/clients/darwin/gitsign-arm64.gz
COPY --from=gitsign /usr/local/bin/gitsign_cli_linux_amd64.gz $APP_ROOT/src/clients/linux/gitsign-amd64.gz
COPY --from=gitsign /usr/local/bin/gitsign_cli_linux_arm64.gz $APP_ROOT/src/clients/linux/gitsign-arm64.gz
COPY --from=gitsign /usr/local/bin/gitsign_cli_linux_ppc64le.gz $APP_ROOT/src/clients/linux/gitsign-ppc64le.gz
COPY --from=gitsign /usr/local/bin/gitsign_cli_linux_s390x.gz $APP_ROOT/src/clients/linux/gitsign-s390x.gz
COPY --from=gitsign /usr/local/bin/gitsign_cli_windows_amd64.exe.gz $APP_ROOT/src/clients/windows/gitsign-amd64.gz
LABEL \
com.redhat.component="trusted-artifact-signer-serve-cli-container-cg" \
name="trusted-artifact-signer-serve-cli-container-cg" \
version="1.0.0" \
summary="Red Hat serves Trusted Artifact Signer CLI binaries, cosign and gitsign" \
description="Serves Trusted Artifact Signer CLI binaries, cosign and gitsign, from an HTTP server" \
io.k8s.description="Serves Trusted Artifact Signer CLI binaries, cosign and gitsign, from an HTTP server" \
io.k8s.display-name="Red Hat serves Trusted Artifact Signer CLI binaries, cosign and gitsign" \
io.openshift.tags="cosign, gitsign, rhtas, trusted, artifact, signer, sigstore" \
maintainer="trusted-artifact-signer@redhat.com"