|
@@ -0,0 +1,21 @@
|
|
|
+FROM registry.sdsys.ru/iru/iru-base:0.1
|
|
|
+ENTRYPOINT ["docker-entrypoint.sh"]
|
|
|
+COPY docker-entrypoint.sh /opt/tomcat8/bin/docker-entrypoint.sh
|
|
|
+ENV CATALINA_HOME="/opt/tomcat8"
|
|
|
+ENV PATH=$CATALINA_HOME/bin:$PATH \
|
|
|
+ CATALINA_OPTS="-Dconfig.file=/etc/web-infoclinic/application.conf" \
|
|
|
+ JAVA_HOME=/usr/java/default \
|
|
|
+ JAVA_OPTS="-Xms512M -Xmx1024M -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true" \
|
|
|
+ WORKDIR=$CATALINA_HOME \
|
|
|
+ DB_CLUSTER=mongodb
|
|
|
+EXPOSE 8080 8009 2551
|
|
|
+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 \
|
|
|
+ && yum install tomcat8 -y \
|
|
|
+ && yum install web-registry-admin -y \
|
|
|
+ && yum clean all \
|
|
|
+ && chmod +x /opt/tomcat8/bin/docker-entrypoint.sh \
|
|
|
+ && chown -R tomcat:tomcat /etc/web-infoclinic
|
|
|
+USER tomcat
|
|
|
+CMD ["catalina.sh", "run"]
|