github.com/quay/claircore@v1.5.28/rhel/rhcc/testdata/Dockerfile-quay-clair-rhel8-v3.5.5-4 (about)

     1  FROM sha256:0ced1c7c9b23d0e107c7b15d5a0017abbbcf7e64e49a4c9f9efa1b9589ca8b68 AS build-pip
     2  
     3  COPY $REMOTE_SOURCE $REMOTE_SOURCE_DIR
     4  WORKDIR $REMOTE_SOURCE_DIR/app
     5  
     6  RUN INSTALL_PKGS="\
     7  	python3 \
     8          gcc-c++ \
     9      " && \
    10      yum -y --setopt=tsflags=nodocs --setopt=skip_missing_names_on_install=False install $INSTALL_PKGS && \
    11      yum -y update && \
    12      yum -y clean all
    13  
    14  RUN alternatives --set python /usr/bin/python3 && \
    15      python -m pip install --no-cache-dir --upgrade setuptools pip && \
    16      python -m pip install --no-cache-dir -r requirements.txt --no-cache && \
    17      python -m pip freeze
    18  
    19  
    20  FROM sha256:320c4c36df196f57b67205292ec1514cce5d6c742cbdc01443f465d931d2bbd4 AS build-gomod
    21  
    22  COPY --from=build-pip $REMOTE_SOURCE_DIR $REMOTE_SOURCE_DIR
    23  WORKDIR $REMOTE_SOURCE_DIR/app
    24  
    25  ARG CLAIR_VERSION=v4.1.1
    26  
    27  # RUN go mod vendor
    28  RUN go build \
    29  	-ldflags="-X main.Version=${CLAIR_VERSION}" \
    30  	./cmd/clair
    31  RUN go build \
    32  	./cmd/clairctl
    33  
    34  FROM sha256:0ced1c7c9b23d0e107c7b15d5a0017abbbcf7e64e49a4c9f9efa1b9589ca8b68
    35  
    36  LABEL com.redhat.component="quay-clair-container"
    37  LABEL name="quay/clair-rhel8"
    38  LABEL version="v3.5.5"
    39  LABEL io.k8s.display-name="Red Hat Quay - Clair"
    40  LABEL io.k8s.description="Red Hat Quay container image scanner"
    41  LABEL summary="Red Hat Quay container image scanner"
    42  LABEL maintainer="support@redhat.com"
    43  LABEL io.openshift.tags="quay"
    44  
    45  RUN INSTALL_PKGS="\
    46  	rpm \
    47  	tar \
    48      " && \
    49      yum -y --setopt=tsflags=nodocs --setopt=skip_missing_names_on_install=False install $INSTALL_PKGS && \
    50      yum -y update && \
    51      yum -y clean all
    52  
    53  VOLUME /config
    54  EXPOSE 6060
    55  WORKDIR /run
    56  ENV CLAIR_CONF=/config/config.yaml
    57  ENV CLAIR_MODE=combo
    58  ENV SSL_CERT_DIR="/etc/ssl/certs:/etc/pki/tls/certs:/var/run/certs"
    59  USER nobody:nobody
    60  
    61  COPY --from=build-pip /usr/local/bin/dumb-init /usr/bin/dumb-init
    62  COPY --from=build-gomod $REMOTE_SOURCE_DIR/app/clair /bin/clair
    63  COPY --from=build-gomod $REMOTE_SOURCE_DIR/app/clairctl /bin/clairctl
    64  
    65  ENTRYPOINT ["/usr/bin/dumb-init", "--", "/bin/clair"]
    66  
    67  ADD quay-clair-container-v3.5.5-4.json /root/buildinfo/content_manifests/quay-clair-container-v3.5.5-4.json
    68  LABEL "release"="4" "com.redhat.license_terms"="https://www.redhat.com/agreements" "distribution-scope"="public" "vendor"="Red Hat, Inc." "build-date"="2021-08-02T15:56:16.824320" "architecture"="x86_64" "vcs-type"="git" "vcs-ref"="60e980fc47a5b270aa1118213135d951b875d43d" "com.redhat.build-host"="cpt-1007.osbs.prod.upshift.rdu2.redhat.com" "description"="Red Hat Quay container image scanner" "url"="https://access.redhat.com/containers/#/registry.access.redhat.com/quay/clair-rhel8/images/v3.5.5-4"