Dockerfile 503 B

1234567891011
  1. FROM alpine:3.10 as build
  2. ARG branch=release
  3. ARG gradle_version=5.2.1
  4. RUN mkdir /root/.ssh
  5. COPY id_rsa /root/.ssh
  6. RUN apk add --update --no-cache wget figlet unzip maven openjdk8 git openssh bash ansible \
  7. && wget https://services.gradle.org/distributions/gradle-${gradle_version}-bin.zip -q -P /tmp \
  8. && unzip -d /opt/gradle /tmp/gradle-${gradle_version}-bin.zip \
  9. && export GRADLE_HOME=/opt/gradle/gradle-${gradle_version} \
  10. && export PATH=${GRADLE_HOME}/bin:${PATH} \
  11. && gradle -v