Владимир Томишинец 5 years ago
parent
commit
cea10d78f5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Dockerfile

+ 3 - 1
Dockerfile

@@ -2,7 +2,9 @@ FROM registry.sdsys.ru/build-image:alpine-3.10-1 as build
 ARG branch=release
 ARG branch=release
 ARG gradle_version=5.2.1
 ARG gradle_version=5.2.1
 COPY id_rsa /root/.ssh
 COPY id_rsa /root/.ssh
-RUN gradle -v \
+RUN export GRADLE_HOME=/opt/gradle/gradle-${gradle_version} \
+    && export PATH=${GRADLE_HOME}/bin:${PATH} \
+    && gradle -v \
     && printf "Host git.alfatell.ru \n\tStrictHostKeyChecking no" > /root/.ssh/config \
     && printf "Host git.alfatell.ru \n\tStrictHostKeyChecking no" > /root/.ssh/config \
     && git clone ssh://gitolite@git.alfatell.ru:2223/web-registration-cloud.git \
     && git clone ssh://gitolite@git.alfatell.ru:2223/web-registration-cloud.git \
     && cd web-registration-cloud && git checkout ${branch} \
     && cd web-registration-cloud && git checkout ${branch} \