FROM images.sdsys.ru/sys/iru-base:7.6 ENTRYPOINT ["/opt/docker-entrypoint.sh"] COPY docker-entrypoint.sh \ healthcheck.sh \ /opt/ ENV CATALINA_HOME="/opt/tomcat" ENV PATH=$CATALINA_HOME/bin:$PATH \ CATALINA_OPTS="-Dconfig.file=/etc/web-laboratory-admin/application.conf" \ JAVA_HOME=/usr/java/default \ JAVA_OPTS="-Xms512M -Xmx1024M -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true -XX:+ExitOnOutOfMemoryError" \ WORKDIR=$CATALINA_HOME \ DB_CLUSTER=mongodb \ APPNET=labnetwork EXPOSE 8091 8080 8009 2551 HEALTHCHECK --start-period=300s --interval=15s --timeout=5s --retries=2 CMD /opt/healthcheck.sh ARG repo=prod ARG version=16.1 RUN set -x \ && curl https://repo.infoclinica.ru/yum/centos/sds-${repo}-${version}.repo -o /etc/yum.repos.d/sds-${repo}-${version}.repo \ && yum install tomcat-8.0.26-01 -y \ && yum install iputils telnet nc -y \ && yum install web-laboratory-admin -y \ # && yum install -y http://192.168.201.50/yum/centos/6/prod/16.1/noarch/web-laboratory-admin-16.1-20190326194125.el6.noarch.rpm \ && yum clean all \ && rm -rf /var/cache/yum \ && chmod +x /opt/docker-entrypoint.sh \ && chmod +x /opt/healthcheck.sh \ && chown -R tomcat:tomcat /etc/web-laboratory-admin \ && cd /opt/tomcat/conf/web-laboratory-admin/localhost \ && ln -s /etc/web-laboratory-admin/ROOT.xml ROOT.xml USER tomcat CMD ["catalina.sh", "run"]