소스 검색

add version parameter

Vadim Surkov 5 년 전
부모
커밋
2c08a74afe
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 \