2024-08-17 21:44:26 +03:00
|
|
|
FROM ubuntu:noble@sha256:8a37d68f4f73ebf3d4efafbcf66379bf3728902a8038616808f04e34a9ab63ee
|
2021-04-26 17:05:22 +03:00
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
ENV ANDROID_HOME=/usr/lib/android-sdk
|
|
|
|
|
|
|
|
RUN apt-get update -y
|
2024-04-01 11:56:17 +03:00
|
|
|
RUN apt-get install -y unzip wget openjdk-17-jdk vim
|
2021-04-26 17:05:22 +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/
|
|
|
|
RUN mkdir -p $HOME/.gradle
|
|
|
|
RUN echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
|