mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-18 16:25:16 +01:00
0a72f3729a
Signed-off-by: stonezdj <stonezdj@gmail.com>
26 lines
766 B
Docker
26 lines
766 B
Docker
FROM photon:2.0
|
|
|
|
RUN tdnf install -y git shadow sudo rpm xz python-xml >>/dev/null\
|
|
&& tdnf clean all \
|
|
&& mkdir /clair/ \
|
|
&& mkdir /harbor \
|
|
&& groupadd -r -g 10000 clair \
|
|
&& useradd --no-log-init -m -r -g 10000 -u 10000 clair
|
|
COPY ./make/photon/clair/binary/clair /clair/
|
|
COPY ./make/photon/clair/docker-entrypoint.sh /docker-entrypoint.sh
|
|
COPY ./make/photon/clair/dumb-init /dumb-init
|
|
COPY ./make/photon/common/install_cert.sh /harbor
|
|
|
|
VOLUME /config
|
|
|
|
EXPOSE 6060 6061
|
|
|
|
RUN chown -R 10000:10000 /clair \
|
|
&& chmod u+x /clair/clair \
|
|
&& chmod u+x /docker-entrypoint.sh \
|
|
&& chmod +x /dumb-init
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -sS 127.0.0.1:6061/health || exit 1
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|