2019-11-12 04:20:54 +01:00
|
|
|
ARG harbor_base_image_version
|
2020-04-01 13:46:45 +02:00
|
|
|
ARG harbor_base_namespace
|
|
|
|
FROM ${harbor_base_namespace}/harbor-clair-base:${harbor_base_image_version}
|
2017-07-11 06:00:44 +02:00
|
|
|
|
2019-10-14 12:25:11 +02:00
|
|
|
COPY ./make/photon/clair/binary/clair /home/clair/
|
|
|
|
COPY ./make/photon/clair/docker-entrypoint.sh /home/clair/
|
|
|
|
COPY ./make/photon/clair/dumb-init /home/clair/
|
|
|
|
COPY ./make/photon/common/install_cert.sh /home/clair/
|
2017-11-16 07:02:09 +01:00
|
|
|
|
2017-07-11 06:00:44 +02:00
|
|
|
VOLUME /config
|
2017-11-16 07:02:09 +01:00
|
|
|
|
2020-02-14 14:11:52 +01:00
|
|
|
RUN chown -R clair:clair /etc/pki/tls/certs && chown -R clair:clair /home/clair \
|
2019-10-14 12:25:11 +02:00
|
|
|
&& chmod u+x /home/clair/clair \
|
|
|
|
&& chmod u+x /home/clair/docker-entrypoint.sh \
|
2020-02-14 14:11:52 +01:00
|
|
|
&& chmod u+x /home/clair/install_cert.sh \
|
2019-10-14 12:25:11 +02:00
|
|
|
&& chmod +x /home/clair/dumb-init
|
2017-11-16 07:02:09 +01:00
|
|
|
|
2017-11-03 11:06:27 +01:00
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -sS 127.0.0.1:6061/health || exit 1
|
2017-11-16 07:02:09 +01:00
|
|
|
|
2019-10-14 12:25:11 +02:00
|
|
|
WORKDIR /home/clair
|
|
|
|
USER clair
|
|
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|