Browse Source

add version parameter

Vadim Surkov 5 years ago
parent
commit
2c08a74afe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -13,10 +13,10 @@ ENV PATH=$CATALINA_HOME/bin:$PATH \
     APPNET=labnetwork
 EXPOSE 8091 8080 8009 2551
 HEALTHCHECK --start-period=300s --interval=15s --timeout=5s --retries=2 CMD /opt/healthcheck.sh
-ARG repo=prod
+ARG repo=prod version=16.1
 
 RUN set -x \
-           && curl https://repo.infoclinica.ru/yum/centos/sds-${repo}-16.1.repo -o /etc/yum.repos.d/sds-${repo}-16.1.repo \
+           && 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 -y \
            && yum install web-laboratory-admin -y \