Skip to content

Commit

Permalink
changed with bashrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Nov 28, 2024
1 parent 97120db commit a1473f8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
18 changes: 12 additions & 6 deletions Dockerfile.2023.11.3
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ 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 export ANDROID_SDK_ROOT=~/Android/Sdk
RUN export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
RUN export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
#RUN export ANDROID_SDK_ROOT=~/Android/Sdk
#RUN export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
#RUN export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
##
ENV ANDROID_SDK_ROOT=~/Android/Sdk
ENV PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
ENV PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
RUN echo $PATH
#ENV ANDROID_SDK_ROOT=~/Android/Sdk
#ENV PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
#ENV PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
RUN echo "export ANDROID_SDK_ROOT=~/Android/Sdk" >> ~/.bashrc
RUN echo "export ANDPATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin" >> ~/.bashrc
RUN echo "export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools" >> ~/.bashrc
RUN cat ~/.bashrc
RUN echo $PATH
##
RUN sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
#
19 changes: 13 additions & 6 deletions Dockerfile.latest
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@ 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 export ANDROID_SDK_ROOT=~/Android/Sdk
RUN export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
RUN export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
#RUN export ANDROID_SDK_ROOT=~/Android/Sdk
#RUN export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
#RUN export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
#
ENV ANDROID_SDK_ROOT=~/Android/Sdk
ENV PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
ENV PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
RUN echo $PATH
#ENV ANDROID_SDK_ROOT=~/Android/Sdk
#ENV PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
#ENV PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
RUN echo "export ANDROID_SDK_ROOT=~/Android/Sdk" >> ~/.bashrc
RUN echo "export ANDPATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin" >> ~/.bashrc
RUN echo "export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools" >> ~/.bashrc
RUN cat ~/.bashrc
#
RUN echo $PATH
##
RUN sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
#

0 comments on commit a1473f8

Please sign in to comment.