-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.cordova
59 lines (47 loc) · 1.58 KB
/
Dockerfile.cordova
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM node:12.3.1-stretch as builder
RUN npm i -g @vue/cli cordova cordova-icon
RUN apt-get update
RUN apt-get install -y default-jdk-headless
RUN apt-get install -y android-sdk
RUN cd /tmp && \
git clone https://github.com/Shadowstyler/android-sdk-licenses.git && \
cp -a android-sdk-licenses/*-license /usr/lib/android-sdk/licenses && \
rm -rf android-sdk-licenses
RUN mkdir -p /app
WORKDIR /app
COPY app/package.json ./
COPY app/package-lock.json ./
RUN npm ci
COPY app/babel.config.js .
COPY app/vue.config.js .
COPY app/favicon.js .
COPY app/public public
COPY app/src src
RUN npm run build
#RUN mv /usr/lib/android-sdk/build-tools/debian /usr/lib/android-sdk/build-tools/28.0.3
#RUN rm -rf /usr/lib/android-sdk/build-tools/24.0.0
RUN mkdir -p /cordova
WORKDIR /cordova
RUN cordova create flash-spanish com.kevapps.flash_spanish flash_spanish
RUN rm -rf /cordova/flash-spanish/www
RUN mv /app/dist /cordova/flash-spanish/www
WORKDIR /cordova/flash-spanish
RUN cordova telemetry off
RUN cordova platform add android@8.0.0
RUN cp /app/favicon.png icon.png
#RUN rm -rf platforms/android/app/src/main/res/drawable*
#RUN rm -rf platforms/android/app/src/main/res/mipmap*
COPY res res
#RUN cordova-icon
#RUN cordova platform rm android
#RUN cordova platform add android
#RUN cordova build
#keytool -genkey -alias kevapps_one \
# -keystore kevapps.pfx \
# -storetype PKCS12 \
# -keyalg RSA \
# -storepass "" \
# -validity 10000 \
# -keysize 4096
#
#cordova build android --no-telemetry --release -- --keystore /secret/kevapkevapps.pfx --alias kevapps_one --storePassword="" --password=""