-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
29 lines (22 loc) · 1017 Bytes
/
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
FROM jetbrains/teamcity-agent:2019.2.1
MAINTAINER Paweł Gajda
ENV GRADLE_HOME=/usr/bin/gradle
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y --force-yes expect git mc gradle unzip \
wget curl libc6-i386 lib32stdc++6 lib32gcc1 \
lib32ncurses5 lib32z1
RUN apt-get clean
RUN rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD android-accept-licenses.sh /opt/tools/
ENV PATH ${PATH}:/opt/tools
ENV LICENSE_SCRIPT_PATH /opt/tools/android-accept-licenses.sh
RUN cd /opt && wget --output-document=android-tools.zip \
https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip && \
unzip android-tools.zip -d android-sdk-linux && \
chown -R root.root android-sdk-linux
ENV ANDROID_HOME /opt/android-sdk-linux
ENV PATH ${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools
RUN yes | sdkmanager --licenses
RUN sdkmanager --update
RUN yes | sdkmanager "build-tools;29.0.3" "platforms;android-29" "ndk-bundle" "ndk;21.0.6113669"