FROM registry.sdsys.ru/iru/iru-base:0.1
ENTRYPOINT ["docker-entrypoint.sh"]
COPY docker-entrypoint.sh /usr/share/web-registry-portal/bin/docker-entrypoint.sh
ENV PATH=/usr/share/web-registry-portal/bin:$PATH LANG="en_US.UTF-8" ADMIN_HOST=admin
EXPOSE 9000 2551
CMD ["web-registry-portal", "-Dpidfile.path=/var/run/web-registry-portal/play.pid", "-Dconfig.file=/etc/web-registry-portal/application.conf", "-Dlogger.file=/etc/web-registry-portal/application-logger.xml"]
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 \
           && chmod +x /usr/share/web-registry-portal/bin/docker-entrypoint.sh \
           && yum install web-registry-portal -y \
           && yum clean all