UNCLASSIFIED

Commit 07c6cbe8 authored by sean.melissari's avatar sean.melissari
Browse files

fix missing binary

parent a9d9704f
Pipeline #317086 passed with stages
in 11 minutes and 31 seconds
......@@ -18,6 +18,9 @@ RUN dnf install -y gcc make && \
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
ENV CLAIR_CONF=/config/config.yaml CLAIR_MODE=combo
ENV SSL_CERT_DIR="/etc/ssl/certs:/etc/pki/tls/certs:/var/run/certs"
RUN groupadd -g 1000 clair && \
useradd -r -u 1000 -m -s /sbin/nologin -g clair clair && \
mkdir /etc/clair && \
......@@ -27,15 +30,17 @@ RUN groupadd -g 1000 clair && \
rm -rf /var/cache/dnf && \
chmod -s /usr/libexec/openssh/ssh-keysign
COPY --from=base /clair /clair
COPY --from=base /usr/bin/dumb-init /usr/bin/dumb-init
COPY --from=base /bin/clair /bin/clair
COPY --from=base /bin/clairctl /bin/clairctl
COPY --from=base /usr/local/bin/dumb-init /usr/local/bin/dumb-init
COPY --from=build /usr/local/musl/lib/libc.so /usr/local/musl/lib/libc.so
COPY --from=build /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1
USER clair
USER 1000
VOLUME /config
WORKDIR /run
EXPOSE 6060 6061
HEALTHCHECK CMD curl -fs http://127.0.0.1:6061/health || curl -fsk https://127.0.0.1:6061/health || exit 1
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/clair"]
ENTRYPOINT ["/usr/local/bin/dumb-init", "--", "/bin/clair"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment