mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-30 04:28:17 +01:00
0673e7c0a9
The VOLUME definition in Dockerfile of chart museum will mount a volume automatically by docker if no specific volume is provided. Signed-off-by: Wenkai Yin <yinw@vmware.com>
24 lines
679 B
Docker
24 lines
679 B
Docker
FROM 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 /chartserver/ \
|
|
&& groupadd -r -g 10000 chartuser \
|
|
&& useradd --no-log-init -m -r -g 10000 -u 10000 chartuser
|
|
COPY ./binary/chartm /chartserver/
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
|
|
VOLUME ["/chart_storage"]
|
|
EXPOSE 9999
|
|
|
|
RUN chown -R 10000:10000 /chartserver \
|
|
&& chmod u+x /chartserver/chartm \
|
|
&& chmod u+x /docker-entrypoint.sh
|
|
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -sS 127.0.0.1:9999/health || exit 1
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|