Add cmdline tools
This commit is contained in:
parent
039d0c2fc0
commit
0d6bc70a4f
1 changed files with 11 additions and 4 deletions
|
@ -10,7 +10,7 @@ WORKDIR /
|
|||
|
||||
RUN apt update; apt-get upgrade -y
|
||||
|
||||
RUN apt install -y build-essential cmake ninja-build openjdk-17-jdk nasm git curl wget openjdk-17-jre android-sdk android-sdk-build-tools android-sdk-platform-tools clang pkg-config
|
||||
RUN apt install -y build-essential cmake ninja-build openjdk-17-jdk nasm git curl wget openjdk-17-jre android-sdk android-sdk-build-tools android-sdk-platform-tools clang pkg-config android-sdk-platform-23 unzip
|
||||
|
||||
RUN curl -sO https://ci.zontreck.com/jnlpJars/agent.jar
|
||||
|
||||
|
@ -18,9 +18,16 @@ RUN curl -sO https://storage.googleapis.com/flutter_infra_release/releases/stabl
|
|||
|
||||
RUN tar -xf /flutter_linux_3.22.2-stable.tar.xz
|
||||
|
||||
RUN echo "export PATH=$PATH:/flutter/bin" > /flutter/env
|
||||
RUN curl -sO https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
|
||||
|
||||
RUN export PATH=$PATH:/flutter/bin
|
||||
WORKDIR /adk
|
||||
RUN unzip /commandlinetools-linux-11076708_latest.zip
|
||||
|
||||
RUN echo "export PATH=$PATH:/flutter/bin:/adk/cmdline-tools/bin" > /flutter/env
|
||||
|
||||
WORKDIR /
|
||||
|
||||
RUN export PATH=$PATH:/flutter/bin:/adk/cmdline-tools/bin
|
||||
|
||||
RUN apt install -y fonts-liberation libgtk-4-1 libgbm1 libu2f-udev libvulkan1 xdg-utils
|
||||
|
||||
|
@ -33,7 +40,7 @@ RUN chown -R root:root /flutter
|
|||
|
||||
RUN /flutter/bin/flutter --disable-analytics
|
||||
|
||||
RUN sdkmanager --install "cmdline-tools;latest"
|
||||
# RUN sdkmanager --install "cmdline-tools;latest"
|
||||
|
||||
RUN /flutter/bin/flutter doctor
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue