Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
abb128 committed Jul 22, 2024
1 parent 5440141 commit 92c0ee7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM gradle:8.2-jdk17

USER root

ENV CLI_URL="https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip" \
ANDROID_HOME="/root/Android/Sdk" \
ANDROID_SDK_ROOT="/root/Android/Sdk" \
ANDROID_VERSION=34 \
ANDROID_BUILD_TOOLS_VERSION=33.0.0

RUN mkdir -p "$ANDROID_HOME" .android \
&& cd "$ANDROID_HOME" \
&& curl -o cli.zip $CLI_URL \
&& unzip cli.zip \
&& rm cli.zip \
&& mv cmdline-tools latest \
&& mkdir cmdline-tools \
&& mv latest cmdline-tools

ENV PATH="$PATH:$ANDROID_HOME/cmdline-tools/latest/bin"

RUN yes | sdkmanager --licenses
RUN sdkmanager --update
RUN sdkmanager --install "build-tools;${ANDROID_BUILD_TOOLS_VERSION}"
RUN sdkmanager --install "platforms;android-${ANDROID_VERSION}"
RUN sdkmanager --install "platform-tools"
RUN sdkmanager --install "ndk;26.1.10909125"

RUN apt update && apt install -y build-essential file apt-utils awscli

0 comments on commit 92c0ee7

Please sign in to comment.