Владимир Томишинец 5 年之前
父节点
当前提交
45c9aef2a3
共有 1 个文件被更改,包括 2 次插入9 次删除
  1. 2 9
      Dockerfile

+ 2 - 9
Dockerfile

@@ -1,14 +1,7 @@
-FROM alpine:3.10 as build
+FROM registry.sdsys.ru/build-image:alpine-3.10-1 as build
 ARG branch=release
-ARG gradle_version=5.2.1
-RUN mkdir /root/.ssh
 COPY id_rsa /root/.ssh
-RUN apk add --update wget figlet unzip maven openjdk8 git openssh \
-    && wget https://services.gradle.org/distributions/gradle-${gradle_version}-bin.zip -q -P /tmp \
-    && unzip -d /opt/gradle /tmp/gradle-${gradle_version}-bin.zip \
-    && export GRADLE_HOME=/opt/gradle/gradle-${gradle_version} \
-    && export PATH=${GRADLE_HOME}/bin:${PATH} \
-    && gradle -v \
+RUN gradle -v \
     && printf "Host git.alfatell.ru \n\tStrictHostKeyChecking no" > /root/.ssh/config \
     && git clone ssh://gitolite@git.alfatell.ru:2223/web-registration-cloud.git \
     && cd web-registration-cloud && git checkout ${branch} \