-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.2023.11.3
28 lines (28 loc) · 1.05 KB
/
Dockerfile.2023.11.3
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
FROM ghcr.io/hiway-media/teamcity-agent-2023.11.3
#
USER root
RUN apt-get update
RUN apt-get -y install gitlab-cli unzip wget rsync
# 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 . ~/.bashrc
##
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"
#