-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
30 lines (23 loc) · 1.05 KB
/
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
30
FROM ubuntu:18.04
RUN apt-get update
# Install some dependencies
RUN dpkg --add-architecture i386 && apt-get update \
&& apt-get install -y expect wget unzip \
libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1
# Install java
RUN apt-get install -y openjdk-8-jdk-headless
# Install the Android SDK
RUN cd /opt && wget --output-document=android-sdk.zip --quiet \
https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip \
&& unzip android-sdk.zip -d /opt/android-sdk && rm -f android-sdk.zip
# Setup environment
ENV ANDROID_HOME /opt/android-sdk
ENV PATH ${PATH}:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools
# Install sdk elements. This might change depending on what your app needs
# I'm installing the most basic ones. You should modify this to install the ones
# you need. You can get a list of available elements by getting a shell to the
# container and using `sdkmanager --list`
RUN echo yes | sdkmanager "platform-tools" "platforms;android-28"
# Go to workspace
RUN mkdir -p /opt/workspace
WORKDIR /opt/workspace