Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829
  1. FROM images.sdsys.ru/sys/iru-base:7.6
  2. ENTRYPOINT ["/entrypoint.sh"]
  3. COPY entrypoint.sh \
  4. /
  5. ENV CATALINA_HOME="/opt/tomcat"
  6. ENV PATH="$PATH:/opt/tomcat/bin" \
  7. CATALINA_OPTS="-Dconfig.file=/etc/web-laboratory-admin/application.conf" \
  8. JAVA_HOME=/usr/java/default \
  9. JAVA_OPTS="-Xms512M -Xmx1024M -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true -XX:+ExitOnOutOfMemoryError" \
  10. WORKDIR=$CATALINA_HOME
  11. EXPOSE 8091 8080 8009 2551
  12. ARG repo=prod
  13. ARG version=16.1
  14. RUN set -x \
  15. && curl https://repo.infoclinica.ru/yum/centos/sds-${repo}-${version}.repo -o /etc/yum.repos.d/sds-${repo}-${version}.repo \
  16. && yum install tomcat-8.0.26-01 -y \
  17. && yum install iputils telnet nc web-laboratory-admin -y \
  18. && yum clean all \
  19. && rm -rf /var/cache/yum \
  20. && chmod +x /entrypoint.sh \
  21. && chown -R tomcat:tomcat /etc/web-laboratory-admin \
  22. && cd /opt/tomcat/conf/web-laboratory-admin/localhost \
  23. && ln -s /etc/web-laboratory-admin/ROOT.xml ROOT.xml
  24. USER tomcat
  25. CMD ["catalina.sh", "run"]