diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-22 11:08:09 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-22 11:08:09 +0200 |
| commit | 3605f4e081283b2f32451c7075fe07648e76e99d (patch) | |
| tree | 71c44ba6c19a77ce470db2200d64c491ed155a27 /app/Dockerfile | |
| parent | 765dcec1266fc1b63ccf48863f36425400d43dcf (diff) | |
| download | mygram-droid-3605f4e081283b2f32451c7075fe07648e76e99d.tar.gz mygram-droid-3605f4e081283b2f32451c7075fe07648e76e99d.zip | |
Add Android project skeleton and Docker build
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'app/Dockerfile')
| -rw-r--r-- | app/Dockerfile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/Dockerfile b/app/Dockerfile new file mode 100644 index 0000000..d2174f7 --- /dev/null +++ b/app/Dockerfile @@ -0,0 +1,22 @@ +# Build image for mygram-droid: JDK 17, Android SDK 34, Gradle. +# Used by build.sh; nothing is installed on the host. +# +# Copyright (C) 2026 Danilo M. <danix@danix.xyz> +# Licensed under the GNU General Public License version 2 only. +FROM eclipse-temurin:17-jdk-jammy + +ENV ANDROID_HOME=/opt/android-sdk \ + GRADLE_VERSION=8.7 +ENV PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin:/opt/gradle-$GRADLE_VERSION/bin + +RUN apt-get update && apt-get install -y --no-install-recommends unzip curl \ + && rm -rf /var/lib/apt/lists/* \ + && curl -fsSL -o /tmp/tools.zip https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip \ + && mkdir -p $ANDROID_HOME/cmdline-tools \ + && unzip -q /tmp/tools.zip -d $ANDROID_HOME/cmdline-tools \ + && mv $ANDROID_HOME/cmdline-tools/cmdline-tools $ANDROID_HOME/cmdline-tools/latest \ + && curl -fsSL -o /tmp/gradle.zip https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip \ + && unzip -q /tmp/gradle.zip -d /opt \ + && rm /tmp/*.zip \ + && yes | sdkmanager --licenses >/dev/null \ + && sdkmanager "platforms;android-34" "build-tools;34.0.0" "platform-tools" >/dev/null |
