Dockerfile 1.3 KB

12345678910111213141516171819202122232425262728293031
  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 /opt/tomcat8/bin/
  5. ENV CATALINA_HOME="/opt/tomcat8"
  6. ENV PATH=$CATALINA_HOME/bin:$PATH \
  7. CATALINA_OPTS="-Dconfig.file=/etc/web-infoclinic/application.conf" \
  8. JAVA_HOME=/usr/java/default \
  9. JAVA_OPTS="-Xms512M -Xmx1024M -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true" \
  10. WORKDIR=$CATALINA_HOME \
  11. DB_CLUSTER=mongodb
  12. EXPOSE 8080 8009 2551
  13. HEALTHCHECK --start-period=120s --interval=15s --timeout=5s --retries=2 CMD healthcheck.sh
  14. ARG repo=prod
  15. RUN set -x \
  16. && curl https://repo.infoclinica.ru/yum/centos/sds-${repo}-portal.repo -o /etc/yum.repos.d/sds-${repo}-portal.repo \
  17. && yum install tomcat8 -y \
  18. && yum install web-registry-admin -y \
  19. && yum update tzdata -y \
  20. && yum clean all \
  21. && chmod +x /opt/tomcat8/bin/docker-entrypoint.sh \
  22. && chmod +x /opt/tomcat8/bin/healthcheck.sh \
  23. && chown -R tomcat:tomcat /etc/web-infoclinic
  24. COPY logging.properties /opt/tomcat8/conf/
  25. RUN set -eux; \
  26. localedef -i ru_RU -c -f UTF-8 -A /usr/share/locale/locale.alias ru_RU.UTF-8
  27. #USER tomcat
  28. ENV LANG ru_RU.utf8
  29. CMD ["catalina.sh", "run"]