Skip to content

Commit b8795f1

Browse files
authored
create environment variables for versions
1 parent d41ee74 commit b8795f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ WORKDIR /opt
55
ENV ANDROID_SDK_URL="https://dl.google.com/android/repository/tools_r25.2.5-linux.zip" \
66
ANDROID_BUILD_TOOLS_VERSION=27.0.0 \
77
ANDROID_APIS="android-27" \
8+
IONIC_VERSION=4.0.2 \
9+
CORDOVA_VERSION=8.0.0 \
810
ANT_HOME="/usr/share/ant" \
911
MAVEN_HOME="/usr/share/maven" \
1012
GRADLE_HOME="/usr/share/gradle" \
@@ -23,4 +25,4 @@ RUN apk --no-cache --allow-untrusted -X https://apkproxy.herokuapp.com/sgerrand/
2325
RUN echo y | android update sdk -a -u -t platform-tools,${ANDROID_APIS},build-tools-${ANDROID_BUILD_TOOLS_VERSION}
2426
RUN chmod a+x -R $ANDROID_HOME
2527
RUN chown -R root:root $ANDROID_HOME
26-
RUN npm i -g --unsafe-perm cordova@8.0.0 ionic@4.0.2
28+
RUN npm i -g --unsafe-perm cordova@${CORDOVA_VERSION} ionic@${IONIC_VERSION}

0 commit comments

Comments
 (0)