From 07c6cbe8da3b84cd819d484cd57bb2ff8ba586b1 Mon Sep 17 00:00:00 2001 From: Sean Melissari Date: Tue, 15 Jun 2021 12:11:06 -0400 Subject: [PATCH] fix missing binary --- Dockerfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fb509ff..693a8b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] -- GitLab