2024-12-03 12:05:24 +03:00
|
|
|
FROM ubuntu:noble@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab
|
2021-02-09 23:12:59 +03:00
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
ENV ANDROID_HOME=/usr/lib/android-sdk
|
|
|
|
|
|
|
|
RUN apt-get update -y
|
2024-01-17 17:21:47 +03:00
|
|
|
RUN apt-get install -y unzip wget openjdk-17-jdk vim
|
2021-02-09 23:12:59 +03:00
|
|
|
|
|
|
|
RUN wget https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip -O /tmp/commandlinetools.zip
|
|
|
|
RUN cd /tmp && unzip commandlinetools.zip
|
|
|
|
RUN mkdir -p /usr/lib/android-sdk/cmdline-tools/
|
|
|
|
RUN cd /tmp/ && mv cmdline-tools/ latest/ && mv latest/ /usr/lib/android-sdk/cmdline-tools/
|
|
|
|
RUN mkdir /usr/lib/android-sdk/licenses/
|
|
|
|
RUN chmod -R 755 /usr/lib/android-sdk/
|
2024-12-10 18:20:21 +03:00
|
|
|
RUN mkdir -p $HOME/.gradle && \
|
|
|
|
echo "org.gradle.jvmargs=-Xmx1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" > "$HOME/.gradle/gradle.properties" && \
|
|
|
|
echo "org.gradle.caching=true" >> "$HOME/.gradle/gradle.properties" && \
|
|
|
|
echo "org.gradle.parallel=true" >> "$HOME/.gradle/gradle.properties" && \
|
|
|
|
echo "org.gradle.configureondemand=true" >> "$HOME/.gradle/gradle.properties" && \
|
|
|
|
echo "kapt.incremental.apt=true" >> "$HOME/.gradle/gradle.properties"
|