forked from gotsunami/docker-fdroid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (27 loc) · 1.02 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
31
32
33
34
35
36
# Compiles and installs an fdroid environment
FROM ubuntu:utopic
MAINTAINER Mathias Monnerville <[email protected]>
# Enable i386 arch (for android SDK)
RUN dpkg --add-architecture i386
# Required dependencies
RUN apt-get -qq update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -q -y \
wget \
libstdc++6:i386 \
zlib1g:i386 \
fdroidserver
# Android SDK
ENV ANDROID_HOME /sdk
RUN wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz
RUN tar xvzf android-sdk_r22.3-linux.tgz && mv android-sdk-linux $ANDROID_HOME && rm android-sdk_r22.3-linux.tgz
# Add android tools and platform tools to PATH
ENV PATH $PATH:$ANDROID_HOME/tools
ENV PATH $PATH:$ANDROID_HOME/platform-tools
# Install latest android (19 / 4.4.2) tools and system image.
RUN echo "y" | android update sdk --no-ui --force --filter platform-tools,android-19,build-tools-19.1.0,sysimg-19
ADD config.py /apk/
ADD fdroid-icon.png /apk/
ADD run.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/run.sh
VOLUME ["/apk/repo"]
CMD ["/usr/local/bin/run.sh"]