build: add cordova resources tool

This commit is contained in:
Jovan Krunić
2021-04-07 18:18:41 +02:00
parent f432f27c64
commit 4e367254c2

View File

@@ -11,6 +11,7 @@ ENV ANDROID_APIS="android-30" \
NPM_VERSION="latest" \
IONIC_VERSION="^6.0.0" \
CORDOVA_VERSION="^10.0.0" \
CORDOVA_RES_VERSION="latest" \
### Configure download URLs
ANDROID_SDK_TOOLS_DOWNLOAD_URL="https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip" \
GOOGLE_SIGNING_KEY_URL="https://dl-ssl.google.com/linux/linux_signing_key.pub" \
@@ -102,7 +103,7 @@ RUN bash /tmp/$NODE_SETUP_SCRIPT && apt-get install -y nodejs && \
### Update npm to latest version
npm install -g npm@$NPM_VERSION && \
### Install needed npm packages
npm install -g @ionic/cli@$IONIC_VERSION cordova@$CORDOVA_VERSION
npm install -g @ionic/cli@$IONIC_VERSION cordova@$CORDOVA_VERSION cordova-res@$CORDOVA_RES_VERSION
### Create, build, delete an empty cordova project to download necessary maven files and keep them in image
RUN cordova create tmp-project && \