FROM images.sdsys.ru/sys/iru-base:7.6 ENTRYPOINT ["/entrypoint.sh"] COPY entrypoint.sh \ / ENV CATALINA_HOME="/opt/tomcat" ENV PATH="$PATH:/opt/tomcat/bin" \ 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 EXPOSE 8091 8080 8009 2551 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 web-laboratory-admin -y \ && yum clean all \ && rm -rf /var/cache/yum \ && chmod +x /entrypoint.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"]