mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +01:00
f83c65bcc5
The following are done to avoid travis-ci failing due to too much log size. 1) Update Makefile and scripts to make go build less verbose. 2) Make tdnf less verbose
28 lines
724 B
Docker
28 lines
724 B
Docker
FROM vmware/photon:1.0
|
|
|
|
|
|
RUN tdnf distro-sync -y \
|
|
&& tdnf erase vim -y \
|
|
&& tdnf install -y git shadow sudo bzr rpm xz python-xml >>/dev/null\
|
|
&& tdnf clean all \
|
|
&& mkdir /clair2.0.1/ \
|
|
&& groupadd -r -g 10000 clair \
|
|
&& useradd --no-log-init -m -r -g 10000 -u 10000 clair
|
|
COPY ./binary/clair /clair2.0.1/
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
COPY dumb-init /dumb-init
|
|
|
|
VOLUME /config
|
|
|
|
EXPOSE 6060 6061
|
|
|
|
RUN chown -R 10000:10000 /clair2.0.1 \
|
|
&& chmod u+x /clair2.0.1/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"]
|