Skip to content

Commit

Permalink
create environment variables for versions
Browse files Browse the repository at this point in the history
  • Loading branch information
smlabt authored Aug 6, 2018
1 parent d41ee74 commit b8795f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -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}

0 comments on commit b8795f1

Please sign in to comment.