-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.latest
30 lines (30 loc) · 1.04 KB
/
Dockerfile.latest
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
FROM ghcr.io/hiway-media/teamcity-agent-latest
#
USER root
#
RUN apt-get update
RUN apt-get -y install gitlab-cli unzip wget rsync sudo
#
# unzip wget nano
RUN wget https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip -O commandlinetools.zip
RUN mkdir -p ~/Android/Sdk/cmdline-tools
RUN unzip commandlinetools.zip -d ~/Android/Sdk/cmdline-tools
RUN mv ~/Android/Sdk/cmdline-tools/cmdline-tools ~/Android/Sdk/cmdline-tools/latest
#
RUN echo $PATH
ENV ANDROID_SDK_ROOT=/root/Android/Sdk
ENV PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
ENV PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
RUN cat ~/.bashrc
RUN . /root/.bashrc
#
RUN echo $PATH
##
RUN ls -l /root/Android/Sdk/cmdline-tools/latest/bin
RUN yes | /root/Android/Sdk/cmdline-tools/latest/bin/sdkmanager --licenses
#
#
RUN yes | /root/Android/Sdk/cmdline-tools/latest/bin/sdkmanager "platform-tools"
RUN yes | /root/Android/Sdk/cmdline-tools/latest/bin/sdkmanager "platforms;android-35"
RUN yes | /root/Android/Sdk/cmdline-tools/latest/bin/sdkmanager "build-tools;35.0.0"
#