Dockerfile 970 B

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