Browse Source

Add Dockerfile

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

+ 11 - 0
Dockerfile

@@ -0,0 +1,11 @@
+FROM alpine:3.10 as build
+ARG branch=release
+ARG gradle_version=5.2.1
+RUN mkdir /root/.ssh
+COPY id_rsa /root/.ssh
+RUN apk add --update --no-cache wget figlet unzip maven openjdk8 git openssh bash ansible \
+    && 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