From b8795f119badacd232965a8f5714c8203b38dbd5 Mon Sep 17 00:00:00 2001 From: Samuel Abt Date: Mon, 6 Aug 2018 22:37:47 +0200 Subject: [PATCH] create environment variables for versions --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8b3410f..f433a57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,8 @@ WORKDIR /opt ENV ANDROID_SDK_URL="https://dl.google.com/android/repository/tools_r25.2.5-linux.zip" \ ANDROID_BUILD_TOOLS_VERSION=27.0.0 \ ANDROID_APIS="android-27" \ + IONIC_VERSION=4.0.2 \ + CORDOVA_VERSION=8.0.0 \ ANT_HOME="/usr/share/ant" \ MAVEN_HOME="/usr/share/maven" \ GRADLE_HOME="/usr/share/gradle" \ @@ -23,4 +25,4 @@ RUN apk --no-cache --allow-untrusted -X https://apkproxy.herokuapp.com/sgerrand/ RUN echo y | android update sdk -a -u -t platform-tools,${ANDROID_APIS},build-tools-${ANDROID_BUILD_TOOLS_VERSION} RUN chmod a+x -R $ANDROID_HOME RUN chown -R root:root $ANDROID_HOME -RUN npm i -g --unsafe-perm cordova@8.0.0 ionic@4.0.2 +RUN npm i -g --unsafe-perm cordova@${CORDOVA_VERSION} ionic@${IONIC_VERSION}