-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (23 loc) · 1.28 KB
/
Dockerfile
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
# ------------------------------ LICENSE AGREEMENT NOTICE ------------------------------
# By using this dockerfile, e.g. by building it or executed it's derived
# images you agree the terms of the following license agreements:
# - Android Software Development Kit License Agreement (https://developer.android.com/studio/terms.html)
# - Android SDK Preview License Agreement (https://raw.githubusercontent.com/thyrlian/AndroidSDK/master/EULA/AndroidSDKPreviewLicenseAgreement)
# - Intel Android Extra License (https://raw.githubusercontent.com/thyrlian/AndroidSDK/master/EULA/IntelAndroidExtraLicense)
# ------------------------------ LICENSE AGREEMENT NOTICE ------------------------------
FROM thyrlian/android-sdk:9.1 as builder
RUN sdkmanager "build-tools;33.0.1" "build-tools;30.0.3" "platforms;android-34" "platform-tools" "emulator"
WORKDIR /app
COPY gradlew gradlew
COPY gradle gradle
RUN ./gradlew --version
COPY build-logic build-logic
COPY download-dependencies download-dependencies
# Download all library dependencies
RUN ./gradlew -p download-dependencies/ app:dependencies
FROM builder as app-image
COPY . .
ARG buildNumber=1
ENV bamboo_buildNumber=$buildNumber
ENTRYPOINT ["./gradlew"]
RUN ./gradlew build -Dskip.e2e=true -Dskip.debugVariants=true -Dskip.flavor.unrestricted=true