mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
ad37fea9f3
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
16 lines
781 B
Docker
16 lines
781 B
Docker
FROM ubuntu:jammy@sha256:77906da86b60585ce12215807090eb327e7386c8fafb5402369e421f44eff17e
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
ENV ANDROID_HOME=/usr/lib/android-sdk
|
|
|
|
RUN apt-get update -y
|
|
RUN apt-get install -y unzip wget openjdk-17-jdk vim
|
|
|
|
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
|