-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·33 lines (20 loc) · 888 Bytes
/
Copy pathDockerfile
File metadata and controls
executable file
·33 lines (20 loc) · 888 Bytes
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
31
32
33
FROM greyfoxit/alpine-openjdk8:8u131
# maintainer: Greyfox Team | team@greyfox.it | @greyfoxit
# Setup
ENV VERSION_SDK_TOOLS=3952940 \
ANDROID_HOME=/usr/local/android-sdk-linux
ENV PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools
RUN mkdir -p $ANDROID_HOME && \
chown -R root.root $ANDROID_HOME && \
# Install dependencies
apk add --no-cache bash curl git openssl openssh-client ca-certificates && \
# Install Android SDK
wget -q -O sdk.zip http://dl.google.com/android/repository/sdk-tools-linux-$VERSION_SDK_TOOLS.zip && \
unzip sdk.zip -d $ANDROID_HOME && \
rm -f sdk.zip
# Install and update Android packages
ADD packages.txt $ANDROID_HOME
RUN mkdir -p /root/.android && \
touch /root/.android/repositories.cfg && \
sdkmanager --update && yes | sdkmanager --licenses && \
sdkmanager --package_file=$ANDROID_HOME/packages.txt