1234567891011121314151617181920212223242526272829 |
- FROM registry.sdsys.ru/iru/iru-base:0.5
- ENTRYPOINT ["docker-entrypoint.sh"]
- COPY docker-entrypoint.sh healthcheck.sh /opt/tomcat8/bin/
- ENV CATALINA_HOME="/opt/tomcat8"
- ENV PATH=$CATALINA_HOME/bin:$PATH \
- CATALINA_OPTS="-Dconfig.file=/etc/web-infoclinic/application.conf" \
- JAVA_HOME=/usr/java/default \
- JAVA_OPTS="-Xms512M -Xmx1024M -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true" \
- WORKDIR=$CATALINA_HOME \
- DB_CLUSTER=mongodb
- EXPOSE 8080 8009 2551
- HEALTHCHECK --start-period=300s --interval=15s --timeout=5s --retries=2 CMD healthcheck.sh
- ARG repo=prod
- RUN set -x \
- && curl https://repo.infoclinica.ru/yum/centos/sds-${repo}-portal.repo -o /etc/yum.repos.d/sds-${repo}-portal.repo \
- && yum install tomcat8 -y \
- && yum install web-registry-admin -y \
- && yum clean all \
- && chmod +x /opt/tomcat8/bin/docker-entrypoint.sh \
- && chmod +x /opt/tomcat8/bin/healthcheck.sh \
- && chown -R tomcat:tomcat /etc/web-infoclinic
- COPY logging.properties /opt/tomcat8/conf/
- RUN set -eux; \
- localedef -i ru_RU -c -f UTF-8 -A /usr/share/locale/locale.alias ru_RU.UTF-8
- USER tomcat
- ENV LANG ru_RU.utf8
- CMD ["catalina.sh", "run"]
|