Dockerfile 773 B

12345678910111213141516
  1. FROM images.sdsys.ru/sys/iru-base:7.6
  2. ENTRYPOINT ["/entrypoint.sh"]
  3. COPY entrypoint.sh /
  4. COPY application-logger.xml application.conf /etc/web-registry-portal/
  5. ENV PATH="$PATH:/usr/share/web-registry-portal/bin" LANG="en_US.UTF-8" ADMIN_HOST=admin \
  6. JAVA_OPTS="-XX:+ExitOnOutOfMemoryError"
  7. EXPOSE 9000 2551 2552
  8. HEALTHCHECK --start-period=30s --interval=20s --timeout=10s --retries=2 CMD healthcheck.sh
  9. ARG repo=prod
  10. RUN set -x \
  11. && curl https://repo.infoclinica.ru/yum/centos/sds-${repo}-portal.repo -o /etc/yum.repos.d/sds-${repo}-portal.repo \
  12. && chmod +x /entrypoint.sh \
  13. && yum install web-registry-portal iputils openssl -y \
  14. && yum update tzdata -y \
  15. && yum clean all \
  16. && rm -rf /var/cache/yum