Владимир Томишинец 5 anni fa
parent
commit
ef6b0813b0
1 ha cambiato i file con 2 aggiunte e 5 eliminazioni
  1. 2 5
      Dockerfile

+ 2 - 5
Dockerfile

@@ -1,12 +1,9 @@
-FROM registry.sdsys.ru/iru/iru-base:7.6 as build
-ENV JAVA_HOME=/usr/java/jdk1.8.0_191-amd64
+FROM alpine:3.10 as build
 ARG branch=newPromoSpring
 ARG gradle_version=5.2.1
 RUN mkdir /root/.ssh
 COPY id_rsa /root/.ssh
-#WORKDIR /web-registration-cloud/promo/build/libs/
-RUN yum install -y https://centos7.iuscommunity.org/ius-release.rpm \
-    && yum install -y wget unzip git2u figlet jdk1.8 maven \
+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} \