Dockerfile 837 B

123456789101112131415
  1. FROM registry.sdsys.ru/iru/iru-base:0.4
  2. ENTRYPOINT ["docker-entrypoint.sh"]
  3. COPY docker-entrypoint.sh healthcheck.sh /usr/share/web-registry-portal/bin/
  4. COPY application-logger.xml /etc/web-registry-portal/
  5. ENV PATH=/usr/share/web-registry-portal/bin:$PATH LANG="en_US.UTF-8" ADMIN_HOST=admin
  6. EXPOSE 9000 2551
  7. HEALTHCHECK --start-period=30s --interval=20s --timeout=10s --retries=2 CMD healthcheck.sh
  8. ARG repo=prod
  9. RUN set -x \
  10. && curl https://repo.infoclinica.ru/yum/centos/sds-${repo}-portal.repo -o /etc/yum.repos.d/sds-${repo}-portal.repo \
  11. && chmod +x /usr/share/web-registry-portal/bin/docker-entrypoint.sh \
  12. && chmod +x /usr/share/web-registry-portal/bin/healthcheck.sh \
  13. && yum install web-registry-portal iputils -y \
  14. && yum clean all \
  15. && rm -rf /var/cache/yum