-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 999 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM macjustice/git-lfs
RUN apt-get update -q && \
apt-get install -qy openjdk-8-jdk-headless unzip && \
rm -rf /var/lib/apt/lists/*
# Install Android SDK Tools
ENV ANDROID_HOME=/opt/android-sdk
WORKDIR $ANDROID_HOME
RUN wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip && \
unzip sdk-tools-linux-3859397.zip && \
rm sdk-tools-linux-3859397.zip
# Preemptively accept Android SDK licenses
RUN yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses
# Install Android SDK parts - build-tools, extras, platform and platform-tools
RUN $ANDROID_HOME/tools/bin/sdkmanager 'build-tools;25.0.3' 'build-tools;25.0.2' 'platforms;android-25' platform-tools 'extras;android;m2repository' 'extras;google;m2repository'
# Install Gradle 3.3
ENV PATH=$PATH:/opt/gradle/gradle-3.3/bin
WORKDIR /opt/gradle
RUN wget https://services.gradle.org/distributions/gradle-3.3-bin.zip && \
unzip gradle-3.3-bin.zip && \
rm gradle-3.3-bin.zip
WORKDIR /data
VOLUME ["/data"]