2018-10-18 05:03:28 +02:00
|
|
|
FROM photon:2.0
|
2018-07-19 10:47:05 +02:00
|
|
|
|
2018-10-18 05:03:28 +02:00
|
|
|
RUN tdnf install -y shadow sudo >>/dev/null\
|
2018-07-19 10:47:05 +02:00
|
|
|
&& tdnf clean all \
|
2019-10-14 09:33:33 +02:00
|
|
|
&& groupadd -r -g 10000 chart \
|
|
|
|
&& useradd --no-log-init -m -g 10000 -u 10000 chart
|
|
|
|
|
|
|
|
COPY ./make/photon/chartserver/binary/chartm /home/chart/
|
|
|
|
COPY ./make/photon/chartserver/docker-entrypoint.sh /home/chart/
|
|
|
|
COPY ./make/photon/common/install_cert.sh /home/chart/
|
|
|
|
|
2019-10-22 15:24:49 +02:00
|
|
|
RUN chown -R chart:chart /etc/pki/tls/certs \
|
2019-10-14 09:33:33 +02:00
|
|
|
&& chown -R chart:chart /home/chart \
|
|
|
|
&& chmod u+x /home/chart/chartm \
|
|
|
|
&& chmod u+x /home/chart/docker-entrypoint.sh \
|
|
|
|
&& chmod u+x /home/chart/install_cert.sh
|
|
|
|
|
|
|
|
USER chart
|
|
|
|
|
|
|
|
WORKDIR /home/chart
|
|
|
|
|
|
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|
2018-07-19 10:47:05 +02:00
|
|
|
|
2018-08-20 11:00:40 +02:00
|
|
|
VOLUME ["/chart_storage"]
|
2018-07-19 10:47:05 +02:00
|
|
|
EXPOSE 9999
|
|
|
|
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -sS 127.0.0.1:9999/health || exit 1
|