mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
3d09089a9c
Make necessary change to make things work with photon 2.0 docker image. Remove distro-sync to mitigate the build issue and add `--pull` to docker build command to make sure the latest photon:2.0 will be pulled during build process. Signed-off-by: Daniel Jiang <jiangd@vmware.com>
21 lines
646 B
Docker
21 lines
646 B
Docker
FROM photon:2.0
|
|
|
|
RUN tdnf install -y shadow sudo >>/dev/null\
|
|
&& tdnf clean all \
|
|
&& mkdir /chartserver/ \
|
|
&& groupadd -r -g 10000 chartuser \
|
|
&& useradd --no-log-init -m -r -g 10000 -u 10000 chartuser
|
|
COPY ./make/photon/chartserver/binary/chartm /chartserver/
|
|
COPY ./make/photon/chartserver/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"]
|